Welcome! Log In Create A New Profile

Advanced

Deny access to hidden files and directories (and their content)

Palvelin Postmaster via nginx
September 19, 2018 04:26AM
I believe my current rexexp match isn’t proper because it’s missing an anchor from the pattern:

location ~ /\. {
deny all;
}

What would be more appropriate? Would this work?

location ~ /\..*$

--
Palvelin.fi Hostmaster
postmaster@palvelin.fi

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

Deny access to hidden files and directories (and their content)

Palvelin Postmaster via nginx September 19, 2018 04:26AM

Re: Deny access to hidden files and directories (and their content)

Maxim Dounin September 19, 2018 02:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready