Rewrite issue

mike mike503 at gmail.com
Mon Sep 29 22:36:57 MSD 2008


dunno. but for auth and other locations i've typically had to use the
nested approach.

either way i don't see a need for any of those location blocks besides
the \.php one in your config

On Mon, Sep 29, 2008 at 11:19 AM, Clint Priest <cpriest at warpmail.net> wrote:
> I would agree with you, but one way works without the extra include... any
> idea why?
>
> mike wrote:
>
>  Mon, Sep 29, 2008 at 10:35 AM, Clint Priest <cpriest at warpmail.net> wrote:
>
> -   location /res {
>
>
>       rewrite ^/res/(.+)$   /code/script.CustomResource.php?File=$1   last;
>
>
> -   }
> -   location / {
>
>
>       rewrite ^/Blocked$     /code/Scripts/Blocked.php        last;
>
>
> -   }
>
>
>   location ~* \.php {
>       include fastcgi;
>   }
>
>
> you'd need to nest the fastcgi location too inside of that block, if
> it -has- to be in a location {} - but i don't think you need those
> location original blocks at all.
>
>





More information about the nginx mailing list