Welcome! Log In Create A New Profile

Advanced

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

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

Hi there,

> I have a folder containing some PHP files served with php-fpm (fastcgi);
> inside tihs folder, I have a file which I want to be allowed for internal
> IPs and deny for external.

One request is handled in one location.

http://nginx.org/r/location for details of how the one location is chosen.

> How can I fix the configuration in order that /some/path/phpinfo.php gets
> interpreted and access restrictions are applied?

In your location that matches this request, put both your "access
control" and your "fastcgi handling" configuration.

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: 230
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