@@ -26,6 +26,12 @@ http {
listen 80;
server_name localhost;
+ # 禁止访问任何 .conf 文件
+ location ~ \.conf$ {
+ deny all;
+ return 403;
+ }
+
location /index.html {
root /usr/share/nginx/html;
add_header Cache-Control "no-cache, no-store";