Files
devopsscripts/base/fileserver/default.conf
2026-03-09 11:02:56 +08:00

25 lines
532 B
Plaintext

server {
listen 80;
listen [::]:80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location /mobile/ {
alias /usr/local/app/mobile/;
try_files $uri /mobile/mobile.html;
index mobile.html mobile.htm;
}
location / {
root /usr/local/app/pc;
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;
}
}