Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow .well-known directory (pki validation / letsencrypt) #1724

Merged
11 changes: 8 additions & 3 deletions basics/installation/advanced/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,14 @@ server {
}
}

# .htaccess, .DS_Store, .htpasswd, etc.
location ~ /\. {
deny all;
# .htaccess, .DS_Store, .htpasswd, etc., but keep .well-known available
location ~* /\.(?!well-known\/) {
deny all;
}

# files in .well-known should be served as plain text.
location ~* ^/\.well-known\/ {
default_type text/plain;
}

# Source code directories.
Expand Down
Loading