Question about nested locations / PHP.
Adrian Hayter
adrianhayter at gmail.com
Sat Mar 10 01:40:33 UTC 2012
Thanks. Could it be done with nested locations at all? Do I really have to include all the PHP config for each block?
-Adrian
On 10 Mar 2012, at 00:47, Cliff Wells wrote:
>
> You don't need nested locations. This should work:
>
> location = /css.php {
> expires 30d;
> add_header Pragma public;
> add_header Cache-Control "public";
> include fastcgi_params;
> fastcgi_pass ...
> }
>
> location ~ \.php$ {
> expires epoch
> include fastcgi_params;
> fastcgi_pass ...
> }
>
> Information on the order of processing can be found here:
>
> http://nginx.org/en/docs/http/request_processing.html#simple_php_site_configuration
> http://wiki.nginx.org/HttpCoreModule#location
>
>
>
> Regards,
> Cliff
>
>
>
>> Thanks in advance!
>>
>> Adrian
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list