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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx