16 lines
280 B
Nginx Configuration File
16 lines
280 B
Nginx Configuration File
|
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";
|
||
|
}
|
||
|
}
|
||
|
}
|