Welcome! Log In Create A New Profile

Advanced

Re: block access to a file !!

Francis Daly
June 06, 2012 10:32AM
On Wed, Jun 06, 2012 at 09:50:57AM -0400, torajx wrote:
> thank you for reply..
> i change it to "location = /admin.php "
> and move it above the "location ~ \.php$ "

"""
Either use something like "location = /admin.php", or maybe reorder to
regex locations (with ~) so they match in the order you want.
"""

You've done both. That's ok, but unnecessary.

> it blocks other IPs but give file not found error for allowed Ips..
>
> the last time I added root to admin.php location the browser promot me
> to download admin.php..
>
> what can I do now ?

"""
You will (probably) want to repeat your fastcgi_pass and other fastcgi_*
config lines inside the new location block. One request is handled by
one location.
"""

Do that.

f
--
Francis Daly francis@daoine.org

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

block access to a file !!

torajx June 06, 2012 09:22AM

Re: block access to a file !!

Francis Daly June 06, 2012 09:42AM

Re: block access to a file !!

torajx June 06, 2012 09:50AM

Re: block access to a file !!

Francis Daly June 06, 2012 10:32AM

Re: block access to a file !!

torajx June 09, 2012 02:44AM

Re: block access to a file !!

torajx June 10, 2012 10:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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