From 083cae774fc37e9cbee7a3fafdcc33343d6ea5ba Mon Sep 17 00:00:00 2001 From: 05412 Date: Thu, 15 Aug 2024 08:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=9B=9E=E9=80=80=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index 1d09286..83cfaf4 100644 --- a/nginx.conf +++ b/nginx.conf @@ -33,21 +33,22 @@ http { #gzip on; server { - listen 80 default_server; + listen 11451 default_server; server_name localhost _; - #autoindex on; + # autoindex on; charset utf8; - + root /usr/share/nginx/html; #charset koi8-r; #access_log logs/host.access.log main; + access_log off; location / { - root /usr/share/nginx/html; - index index.html index.htm; + try_files $uri $uri/ /index.html; } location /health { add_header Content-Type text/plain; + access_log off; return 200 "OK"; }