Welcome! Log In Create A New Profile

Advanced

Re: Location recursive downloads php files

Francis Daly
July 21, 2013 04:18PM
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
Subject Author Posted

Location recursive downloads php files

Peleke July 20, 2013 05:01PM

Re: Location recursive downloads php files

Francis Daly July 21, 2013 04:06AM

Re: Location recursive downloads php files

Peleke July 21, 2013 01:08PM

Re: Location recursive downloads php files

Francis Daly July 21, 2013 04:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 317
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready