修改默认端口,添加回退路由
This commit is contained in:
parent
ee6e86d713
commit
083cae774f
@ -33,21 +33,22 @@ http {
|
|||||||
#gzip on;
|
#gzip on;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 11451 default_server;
|
||||||
server_name localhost _;
|
server_name localhost _;
|
||||||
# autoindex on;
|
# autoindex on;
|
||||||
charset utf8;
|
charset utf8;
|
||||||
|
root /usr/share/nginx/html;
|
||||||
#charset koi8-r;
|
#charset koi8-r;
|
||||||
|
|
||||||
#access_log logs/host.access.log main;
|
#access_log logs/host.access.log main;
|
||||||
|
access_log off;
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
try_files $uri $uri/ /index.html;
|
||||||
index index.html index.htm;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /health {
|
location /health {
|
||||||
add_header Content-Type text/plain;
|
add_header Content-Type text/plain;
|
||||||
|
access_log off;
|
||||||
return 200 "OK";
|
return 200 "OK";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user