Welcome! Log In Create A New Profile

Advanced

Re: Require a password for everything except one folder?

Francis Daly
November 06, 2014 05:24PM
On Thu, Nov 06, 2014 at 04:47:28PM -0500, nrahl wrote:

Hi there,

> With debug logging on, I ahve confirmed it is matching the correct location.

Do you also see the subrequest that accesses a different location that
has its own configration?

> With:
>
> location ^~ /Public {
> satisfy any;
> allow all;
> auth_basic off;
> try_files fake.html @apache;
> }
>
> It matched the /Public location and I get: "no user/password was provided
> for basic authentication" durring the access phase.

Is that only if the file fake.html does not exist, so there is a new
request to the location @apache which does require authentication?

Or do you get unexpected output when the request is only handled in
this location?

> With:
>
> location ^~ /Public {
> auth_basic off;
> try_files fake.html @apache;
> }

> access forbidden by rule, client: xxx.xxx.xxx.xxx, server: www.myserver.com,
> request: "GET /Public/ HTTP/1.1", host: "www.myserver.com".

You have denied access by ip address here, so 403 is the expected
response, no?


You may have more success if you can describe what response you expect,
and provide a complete (small) server{} configuration that demonstrates
the unwanted behaviour that you see.

f
--
Francis Daly francis@daoine.org

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

Require a password for everything except one folder?

nrahl November 05, 2014 08:46PM

Re: Require a password for everything except one folder?

Philipp November 06, 2014 02:04AM

Re: Require a password for everything except one folder?

nrahl November 06, 2014 09:51AM

Re: Require a password for everything except one folder?

Francis Daly November 06, 2014 01:48PM

Re: Require a password for everything except one folder?

nrahl November 06, 2014 04:47PM

Re: Require a password for everything except one folder?

Francis Daly November 06, 2014 05:24PM

Re: Require a password for everything except one folder?

nrahl November 06, 2014 05:35PM

Re: Require a password for everything except one folder?

Francis Daly November 06, 2014 06:10PM

Re: Require a password for everything except one folder?

nrahl November 06, 2014 07:29PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready