修改默认端口,添加回退路由
This commit is contained in:
parent
ee6e86d713
commit
083cae774f
@ -33,21 +33,22 @@ http {
|
||||
#gzip on;
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen 11451 default_server;
|
||||
server_name localhost _;
|
||||
# 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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user