Files

21 lines
589 B
Plaintext
Raw Permalink Normal View History

2024-07-23 14:48:37 +08:00
server {
listen 80;
server_name ko.wp-1.com;
index index.php index.html index.htm default.php default.htm default.html;
access_log /www/sites/domain/log/access.log main;
error_log /www/sites/domain/log/error.log;
location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md){
return 404;
}
location ^~ /.well-known/acme-challenge {
2024-07-23 14:48:37 +08:00
allow all;
2025-05-09 16:53:48 +08:00
root /usr/share/nginx/html;
2024-07-23 14:48:37 +08:00
}
if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) {
return 403;
}
2024-07-23 14:48:37 +08:00
}