17 lines
345 B
Nginx Configuration File
17 lines
345 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
|
|
# 开发环境禁用缓存
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0";
|
|
add_header Pragma "no-cache";
|
|
expires -1;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|