Welcome! Log In Create A New Profile

Advanced

Re: allow access on a sublocation

Jonathan Matthews
August 06, 2013 10:24AM
On 6 Aug 2013 15:08, "Greg" <greg@2lm.fr> wrote:
>
> Hi,
>
> this configuration does not work as expected :
>
> server {
> satisfy any;
> auth_basic "DING DING SONG";
> auth_basic_user_file /etc/apache2/htpasswd;
> allow from CIDR;
> allow from CIDR;
> allow from CIDR;
> allow from CIDR;
>
> location ^~ /allowed/ {
> allow all;
> }
>
> deny all;
> }
>
> I short, I want to disallow access on my website, only some IPs can
> access, except for /allowed/ which is open.

Just checking you're aware that this only matches "/allowed/" by itself and
nothing below it.

Is that what you meant? Is that what you're testing?

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

allow access on a sublocation

Greg August 06, 2013 10:10AM

Re: allow access on a sublocation

Jonathan Matthews August 06, 2013 10:24AM

Re: allow access on a sublocation

Greg August 06, 2013 10:36AM

Re: allow access on a sublocation

Jonathan Matthews August 06, 2013 10:50AM

Re: allow access on a sublocation

Reinis Rozitis August 06, 2013 10:52AM

Re: allow access on a sublocation

Greg August 06, 2013 11:02AM

Re: allow access on a sublocation

Reinis Rozitis August 06, 2013 11:24AM

Re: allow access on a sublocation

Francis Daly August 06, 2013 05:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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