Просмотр исходного кода

Merge remote-tracking branch 'origin/release' into release

zhangchong 3 дней назад
Родитель
Сommit
ab17d83486
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      nginx.conf

+ 6 - 0
nginx.conf

@@ -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";