From 1401ba6422c00290d5a2e88c58be2770f35b7027 Mon Sep 17 00:00:00 2001 From: ywp Date: Tue, 17 Jun 2025 19:12:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20nginx.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..e3aa7ca --- /dev/null +++ b/nginx.conf @@ -0,0 +1,16 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + ## html不缓存 + if ($request_filename ~* .*\.(htm|html)$) + { + add_header Cache-Control "no-store"; + } + } +} \ No newline at end of file