Skip to content

Commit 6920959

Browse files
authored
Update drop.conf
1 parent 0d3ff45 commit 6920959

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

globals/drop.conf

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; }
99
#location /.well-known/acme-challenge/ { try_files $uri /dev/null =404; }
1010
location ~ ^/.well-known/acme-challenge/* { allow all; }
1111

12+
#### Necessary for LEDN ownership validation, other .well-known use (MORE COMPLETE?)
13+
#### from https://stackoverflow.com/a/49324172
14+
#### "I would go with an optimised code: So that all dots are denied except .well-known folder
15+
#location ~ /\.(?!well-known).* {
16+
# deny all;
17+
#}
18+
1219
#### Turn off logging for basic traffic, giving syslog a little relief
1320
location = /robots.txt { access_log off; log_not_found off; }
1421
location ~ /\. { access_log off; log_not_found off; deny all; }

0 commit comments

Comments
 (0)