Location recursive downloads php files
Francis Daly
francis at daoine.org
Sun Jul 21 20:16:34 UTC 2013
On Sun, Jul 21, 2013 at 01:08:18PM -0400, Peleke wrote:
Hi there,
> Okay, it works if I add this:
>
> location ^~ /folder1/admin {
<snip>
> location ~ \.php$ {
<snip>
> }
> }
> location ~ \.php$ {
<snip>
> }
> But that is redundancy and can be complicated if you have many of those
> entries and then want to change a .php setting (you have to do it multiple
> times).
> Isn't it possible to make it simpler?
Yes.
Either use an external-to-nginx thing to create the complicated config
file from less complicated parts; or put the repeated parts in a file and
"include" it.
http://nginx.org/r/include
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list