modify nginx for static files

This commit is contained in:
UlricQin 2020-09-27 19:57:43 +08:00
parent be1e161f31
commit db75a5fb74
1 changed files with 4 additions and 20 deletions

View File

@ -103,28 +103,12 @@ http {
rewrite / /mon;
}
location /rdb {
root /home/n9e/pub;
index index.html;
try_files $uri /rdb/index.html;
location / {
try_files $uri /layout/index.html;
}
location /ams {
root /home/n9e/pub;
index index.html;
try_files $uri /ams/index.html;
}
location /job {
root /home/n9e/pub;
index index.html;
try_files $uri /job/index.html;
}
location /mon {
root /home/n9e/pub;
index index.html;
try_files $uri /mon/index.html;
location ~ .*(.htm|.html|manifest.json)$ {
add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
}
location /api/rdb {