From 44e127d5bae9023987945b0eb67d0033f2e4d334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 29 Sep 2025 03:11:23 +0800 Subject: [PATCH] fix: tests --- pkg/nginx/testdata/https.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/nginx/testdata/https.conf b/pkg/nginx/testdata/https.conf index 00ca9863..7ee96096 100644 --- a/pkg/nginx/testdata/https.conf +++ b/pkg/nginx/testdata/https.conf @@ -1,7 +1,7 @@ server { listen 80; server_name localhost; - index index.php index.html index.htm; + index index.php index.html; root /www/wwwroot/default; ssl_certificate /www/server/vhost/cert/default.pem; ssl_certificate_key /www/server/vhost/cert/default.key; @@ -11,10 +11,10 @@ server { ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305; ssl_prefer_server_ciphers off; ssl_early_data on; - # 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; @@ -25,7 +25,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; }