Welcome! Log In Create A New Profile

Advanced

Re: nginx - php-fpm: access restrictions for some php pages

Francis Daly
January 31, 2013 07:04AM
On Thu, Jan 31, 2013 at 06:53:40AM -0500, m.desantis wrote:

> You mean like this?

No.

Read the mail again.

> But now restriction rules are applied to all PHP files; instead I want to
> apply them just to some PHP files; should I use a nested location? something
> like this?

No.

Your very first example was almost correct. You had

location = /some/path/phpinfo.php {
}

which you said was the one location which matched the request that you
cared about.

In *that* location, put all of the configuration that you want for
that request.

(It is probably only six lines, since you know exactly what filename you
want the fastcgi server to process.)

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx - php-fpm: access restrictions for some php pages

m.desantis January 31, 2013 06:22AM

Re: nginx - php-fpm: access restrictions for some php pages

Francis Daly January 31, 2013 06:40AM

Re: nginx - php-fpm: access restrictions for some php pages

m.desantis January 31, 2013 06:53AM

Re: nginx - php-fpm: access restrictions for some php pages

Francis Daly January 31, 2013 07:04AM

Re: nginx - php-fpm: access restrictions for some php pages

Francis Daly January 31, 2013 07:36AM

Re: nginx - php-fpm: access restrictions for some php pages

m.desantis January 31, 2013 09:12AM

Re: nginx - php-fpm: access restrictions for some php pages

Francis Daly January 31, 2013 02:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
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