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;
|
2025-06-25 16:23:21 +08:00
|
|
|
|
|
|
|
|
location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md){
|
|
|
|
|
return 404;
|
|
|
|
|
}
|
2025-10-09 11:54:15 +08:00
|
|
|
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
|
|
|
}
|
2025-06-25 16:23:21 +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
|
|
|
}
|