I'm launching a couple of DJANGO instances under the same url. They all serve files over HTTPS. In order to save money for ssl certificates, I'm launching them under mydomain.com/django1/
, mydomain.com/django2/
etc. The redirection to the correct DJANGO instance is done in NGINX.
My problem is, how should I change the DJANGO urls to match this architecture? Or can it be done in settings.py
?
Documentation: urls and FORCE_SCRIPT_NAME do not seem to give a clue, though I don't really understand the latter...
Thanks in advance!
DA
EDIT 1
This is the block from nginx.conf
location /django1/static/ {
alias full_path_to_static/static/;
}
location /django1 {
# We use python for this one
include uwsgi_params;
uwsgi_buffering off;
uwsgi_pass unix:full_path_to.socket;
}