I have an existing apache serving a couple of sites.
Now I have a new django site that's ajax intensive and so I'm planning to run it on apache's mod_wsgi but I'll use nginx as a reverse proxy.
Is it possible to have nginx be a reverse proxy to this new django site while make apache serve the other sites directly without using nginx?
Also if you can give me a rough setup on how I might do it if its possible.
Best Answer
The way I solved this problem is to have nginx reverse proxy all of the sites, but have them go to different apache virtual hosts listening on different ports.
nginx (in /etc/nginx)
proxy.conf
/etc/nginx/sites-enabled/default
Apache Settings /etc/apache2/sites-enabled
django-site
regular-site
In /etc/apache2/apache2.conf
ports.conf must list every port /etc/apache2/ports.conf