Welcome! Log In Create A New Profile

Advanced

Re: How to "undo" a global server deny all in a location block

Francis Daly
March 09, 2015 08:08PM
On Mon, Mar 09, 2015 at 07:38:47PM -0400, justink101 wrote:

Hi there,

> Is it possible to undo a server level deny all; inside a more specific
> location block?

Yes.

Normal directive inheritance rules apply, but with the note that "allow"
and "deny" are one of a small set of directives which are inherited as
a pair.

So "allow 1.2.3.4;" inside a location means that the entire allow/deny
configuration within that location is just the one entry.

> location = /actions/allow-all.php {
> # this should allow all
> # bunch of directives
> }

Add "allow all;" in there.

f
--
Francis Daly francis@daoine.org

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

How to "undo" a global server deny all in a location block

justink101 March 09, 2015 07:38PM

Re: How to "undo" a global server deny all in a location block

Francis Daly March 09, 2015 08:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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