I am running my main website (e.g. main.com) on a MacMini Server with OS X 10.10 and Server App Version 4. In addition, I serve a Django powered web app on a Raspberry Pi using Gunicorn and nginx. Now, I like to make the web app available from a subdomain (e.g. webapp.main.com) or alternatively from a different path like main.com/webapp.
I understand that the requests on port 80 will be handled by the web server on the MacMini. So it's a matter of redirecting the request from there to the Raspberry Pi server. How can I do this redirect or is my setup maybe too messy?