Welcome! Log In Create A New Profile

Advanced

Re: Fwd: Deny access to subfolder/files

Francis Daly
February 13, 2015 12:36PM
On Fri, Feb 13, 2015 at 02:20:29PM +0100, basti wrote:

> https://example.com/foo/doc/bar/filename.txt

> location ~ ^/foo/(doc|etc|lib|log|sbin|var/cache|var/lib|var/log)/ {
> deny all;
> }

http://nginx.org/r/location

One request is handled in one location.

Which one location in your config will handle the request
/foo/doc/bar/filename.txt ?

If it is the one you show, you will get http 403.

f
--
Francis Daly francis@daoine.org

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

Fwd: Deny access to subfolder/files

basti February 13, 2015 08:22AM

Re: Fwd: Deny access to subfolder/files

Francis Daly February 13, 2015 12:36PM

Re: Fwd: Deny access to subfolder/files

itpp2012 February 13, 2015 02:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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