Files
common-server-public/nginx/conf.d/v.conf

19 lines
425 B
Plaintext

server {
listen 80;
server_name v.membank.xyz;
location / {
root /usr/share/nginx/html/v;
index index.html index.htm;
# 启用目录浏览(可选)
autoindex on;
# 添加缓存配置
location ~* \.(html|css|js|png|jpg|jpeg|gif|ico|svg)$ {
expires 1d;
add_header Cache-Control "public, immutable";
}
}
}