Rewriting Base URL when passing

Valentin V. Bartenev ne at vbart.ru
Wed Feb 15 21:38:39 UTC 2012


On Thursday 16 February 2012 01:23:48 adam estes wrote:
> Whenever I type /django/admin
> 
> The url changes to /admin and the ipb admin login is displayed
> (Because admin is in the root folder, not in the django folder.
> 
> if I type /django/admin/
> 
> The django admin page is displayed, but clicking login changes it to
> /admin and the ipb login page is displayed.
> 

Hm... I see. But what do you expect? Now, your django doesn't know about 
"/django/" prefix in your url and naturally generates all links without it.

When you click to "/admin" - your browser goes to "/admin" and nginx receives a 
request to "/admin" (not /django/admin).


 wbr, Valentin V. Bartenev



More information about the nginx mailing list