modify nginx for static files
This commit is contained in:
parent
be1e161f31
commit
db75a5fb74
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue