Skip to content
Snippets Groups Projects
Verified Commit 24de0cee authored by psy's avatar psy
Browse files

match .well-known only on top level

parent 68584d51
Branches
Tags
1 merge request!2disallow access to dotfiles besides .well-known by default
......@@ -89,7 +89,7 @@ server {
{% if vhost.disallow_dotfiles %}
# explicitly allow .well-known/
location ~ /\.well-known/ {
location ~ ^/\.well-known/ {
allow all;
  • maybe add the following line to be on the safe side: default_type "text/plain"; someone might have an interest in executing scripts otherwise ...

  • Please register or sign in to reply
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment