Rewriting Base URL when passing

Valentin V. Bartenev ne at vbart.ru
Wed Feb 15 19:49:02 UTC 2012


On Wednesday 15 February 2012 22:53:56 adam estes wrote:
> The problem is that its not going to be just /admin
> 
> There are around 10 urls defined.
> 
> I tried
> 
> location ~ ^/django(?P<django_path>.*?)$ {
>                         uwsgi_param PATH_INFO $django_path;
>                         uwsgi_pass 127.0.0.1:9001;
>                         include uwsgi_params;
>                 }
> 
> 
> Which according to RegSkinner, would match anything after /django
> 
> But this did not work. Its still passing the django parth. What do I do?
> 

Have you looked at your "uwsgi_params" file which you include in the location?
So I expect that it sets one more PATH_INFO param to different value.

 wbr, Valentin V. Bartenev



More information about the nginx mailing list