I set up a Django server on port 8011, and have a nginx serving it as a subdirectory on port 80.
Static files, good.
Pages, good.
But when I access /subdirectory/admin/, it takes me to: /admin/login/?next=/admin/
Which is of course a 404 error, but if I access /subdirectory/admin/login/?next=/admin/, it works fine.
Any ideas? Do I need to set a variable in the settings.py?
urls.py
:
url(r'^admin/', admin.site.urls),
nginx config:
server {
listen 80;
location /sdc {
proxy_pass http://127.0.0.1:8011/;
}
}