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
No related branches found
No related tags found
1 merge request!2disallow access to dotfiles besides .well-known by default
...@@ -89,7 +89,7 @@ server { ...@@ -89,7 +89,7 @@ server {
{% if vhost.disallow_dotfiles %} {% if vhost.disallow_dotfiles %}
# explicitly allow .well-known/ # explicitly allow .well-known/
location ~ /\.well-known/ { location ~ ^/\.well-known/ {
allow all; 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