forked from mj/devopsscripts
更新 base/fileserver/default.conf
This commit is contained in:
@@ -6,10 +6,15 @@ server {
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
location / {
|
||||
root /usr/local/app;
|
||||
root /usr/local/app/pc;
|
||||
try_files $uri /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
location /mobile {
|
||||
root /usr/local/app/mobile;
|
||||
try_files $uri /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
Reference in New Issue
Block a user