generated from nhcarrigan/template
fc252e28e2
Adds a deny-dotfiles snippet that returns 403 for any URI matching /\. (e.g. .gitconfig, .env, .git/) and includes it in every server block.
5 lines
95 B
Plaintext
5 lines
95 B
Plaintext
# Block requests for dotfiles (e.g. .gitconfig, .env, .git/).
|
|
location ~ /\. {
|
|
return 403;
|
|
}
|