Rewrite issue

mike mike503 at gmail.com
Mon Sep 29 21:57:33 MSD 2008


 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