Welcome! Log In Create A New Profile

Advanced

Fwd: Deny access to subfolder/files

basti
February 13, 2015 08:22AM
Hello,

i have a URL like

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

I want to deny access to all files and folders in /doc/...
and try

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

I does not work, i can download the file above.
How can please help?

Thanks!



_______________________________________________
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: 174
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