[BangPypers] Multiple Django app with nginx
Sathishkumar Duraisamy
bewithsathish at gmail.com
Wed May 18 15:11:04 EDT 2016
Hi All,
In Apache with help of modwsgi module we can mount may application like
WSGIScriptAlias /app1 /usr/local/www/wsgi-scripts/myapp1.wsgi
WSGIScriptAlias /app2 /usr/local/www/wsgi-scripts/myapp2.wsgi
What is the similar approch for NGINX web server? Any idea?
I have been trying with reverse proxy along with gunicorn, but not able to
achieve.
I am trying to get mount as follows:
http://exmaple.com/app1 --> 127.0.0.1:8000/
http://exmaple.com/app1/home/ --> 127.0.0.1:8000/home/
http://exmaple.com/app2 --> 127.0.0.1:9000/
http://exmaple.com/app2/home/ --> 127.0.0.1:9000/home/
If I can achieve partially, the links returning from application webpage
are pointing to root (ie)
Expecting: http://exmaple.com/app1/results
But: http://example.com/results.
Thanks and Regards,
Sathishkumar D
More information about the BangPypers
mailing list