Question about nested locations / PHP.

Cliff Wells cliff at develix.com
Sat Mar 10 22:11:55 UTC 2012


On Sun, 2012-03-11 at 01:15 +0400, Maxim Dounin wrote:

> And, as Cliff already suggested, you don't really need nested 
> locations here, it's better to define exact location for 
> /css.php, i.e. something like this:
> 
>     location = /css.php {
>         expires 30d;
>         fastcgi_pass ...
>         ...
>     }

I was concerned that using an absolute location might not be general
enough, since I seem to see a lot of PHP apps that use URLS like
"/css.php/these/are/args", which might cause this location to be skipped
if css.php happened to use that scheme.

Regards,
Cliff



More information about the nginx mailing list