From 88b4d290b468ea1e6a36495e748d0ce4fe1db234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 29 Sep 2025 04:18:56 +0800 Subject: [PATCH] fix: tests --- pkg/nginx/testdata/http.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/nginx/testdata/http.conf b/pkg/nginx/testdata/http.conf index 62ff82e3..02126989 100644 --- a/pkg/nginx/testdata/http.conf +++ b/pkg/nginx/testdata/http.conf @@ -1,12 +1,12 @@ server { listen 80; server_name localhost; - index index.php index.html index.htm; + index index.php index.html; root /www/wwwroot/default; - # Error page configuration + # Error page error_page 404 /404.html; include enable-php-0.conf; - # Do not log static files + # Browser cache location ~ .*\.(bmp|jpg|jpeg|png|gif|svg|ico|tiff|webp|avif|heif|heic|jxl)$ { expires 30d; access_log /dev/null; @@ -17,7 +17,7 @@ server { access_log /dev/null; error_log /dev/null; } - # Deny some sensitive directories + # Deny sensitive files location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.env) { return 404; }