添加 nginx.conf

This commit is contained in:
ywp
2025-06-17 19:12:09 +08:00
parent fba0a30a8d
commit 1401ba6422

16
nginx.conf Normal file
View File

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