allow access on a sublocation

Francis Daly francis at
Tue Aug 6 21:30:35 UTC 2013

On Tue, Aug 06, 2013 at 04:07:48PM +0200, Greg wrote:

Hi there,

> this configuration does not work as expected :

In what way does it fail for you?

When I "allow", I am challenged http 401 for "curl -i", but get the file content from both "curl
-i" and "curl -i"

> I short, I want to disallow access on my website, only some IPs can
> access, except for /allowed/ which is open.
> What's wrong ?

It seems to work for me.

nginx -v?

nginx -V?

output of specific curl commands I can use to replicate the problem?


Francis Daly        francis at

More information about the nginx mailing list