Skip to content
Snippets Groups Projects

disallow access to dotfiles besides .well-known by default

1 file
+ 1
6
Compare changes
  • Side-by-side
  • Inline
+ 1
6
@@ -89,12 +89,7 @@ server {
{% if vhost.disallow_dotfiles %}
# explicitly allow .well-known/
location ~ ^/\.well-known/ {
allow all;
default_type "text/plain";
}
location ~ /\. {
location ~ ^/\.(?!well-known\/).* {
deny all;
}
{% endif %}
Loading