|
|
@@ -38,9 +38,14 @@ server {
|
|
|
error_page 404 = /core/templates/404.php;
|
|
|
error_page 500 502 503 504 /error/50x.html;
|
|
|
|
|
|
- location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README){
|
|
|
+ location ~ ^/(?:\data|config|db_structure\.xml|README){
|
|
|
deny all;
|
|
|
}
|
|
|
+
|
|
|
+ location ~ /\.(?!well-known\/) {
|
|
|
+ deny all;
|
|
|
+ return 404;
|
|
|
+ }
|
|
|
|
|
|
location / {
|
|
|
# The following 2 rules are only needed with webfinger
|
|
|
@@ -75,11 +80,6 @@ server {
|
|
|
alias %home%/%user%/web/%domain%/document_errors/;
|
|
|
}
|
|
|
|
|
|
- location ~* "/\.(htaccess|htpasswd)$" {
|
|
|
- deny all;
|
|
|
- return 404;
|
|
|
- }
|
|
|
-
|
|
|
location /vstats/ {
|
|
|
alias %home%/%user%/web/%domain%/stats/;
|
|
|
include %home%/%user%/web/%domain%/stats/auth.conf*;
|