I want to set up a reverse proxy that will redirect a Django app URL to another part of the same website that is outside of Django.
(for example):
www.mysite.com/MyDjangoApp/foo/ -> www.mysite.com/bar/
And of course, I need this to work for whatever domain/server the app is installed on.
The example in the docs only shows redirecting to a static alternate domain (upstream='http://example.com/'). What to I set "upstream" to in order to use whatever server the original request was made to, instead of always going to example.com?
I want to set up a reverse proxy that will redirect a Django app URL to another part of the same website that is outside of Django.
(for example):
www.mysite.com/MyDjangoApp/foo/ -> www.mysite.com/bar/
And of course, I need this to work for whatever domain/server the app is installed on.
The example in the docs only shows redirecting to a static alternate domain (upstream='http://example.com/'). What to I set "upstream" to in order to use whatever server the original request was made to, instead of always going to example.com?