修改默认端口,添加回退路由

This commit is contained in:
05412 2024-08-15 08:41:48 +08:00
parent ee6e86d713
commit 083cae774f

View File

@ -33,21 +33,22 @@ http {
#gzip on;
server {
listen 80 default_server;
listen 11451 default_server;
server_name localhost _;
#autoindex on;
# autoindex on;
charset utf8;
root /usr/share/nginx/html;
#charset koi8-r;
#access_log logs/host.access.log main;
access_log off;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /health {
add_header Content-Type text/plain;
access_log off;
return 200 "OK";
}