Hello everyone !
Newbie in Django, starting a new project with Django 3.1. The server/dataflow structure is
browser --> HTTPS --> reverse-proxy --> HTTPS --> Apache --> HTTP --> localhost:port --> Gunicorn --> Django + dks.app
The Django project name is "dks" and one app is "demo1". So I would like to have this URL in the browser :
https://revproxy.domain.com/dir/dks/
and my app as
https://revproxy.domain.com/dir/dks/demo1
I have full control over the whole chain and can configure whatever it needs, like HTTP headers, directories, whatever. I know about proxypass and friends.
I'm just not sure what is the documented way of "shifting" "/" to "/dir/dks/" so my URL routing works for apps and admin. To me it's quite a basic requirement that I don't see how to do in the URL doc. I would like to have Django root URL to not sit at "/", but at "/dir/subdir/".
The only hint I found is years old :
https://stackoverflow.com/questions/17420478/how-to-set-base-url-in-django
thanks for your help,
Charles