Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

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

$
0
0
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

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>