Commit bfb1da21 authored by tanyang's avatar tanyang

添加szh-test.jiansheku.com

parent 68bdc70c
server server
{ {
listen 80; listen 80;
server_name hwszh.jiansheku.com szh.jiansheku.com szh-test.jiansheku.com; server_name hwszh.jiansheku.com szh.jiansheku.com szh-test.jiansheku.com szhapi.jiansheku.com;
index index.php index.html index.htm default.php default.htm default.html; index index.php index.html index.htm default.php default.htm default.html;
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
...@@ -15,6 +15,16 @@ server ...@@ -15,6 +15,16 @@ server
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
location /prod-api/ {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# 后端服务地址
proxy_pass http://localhost:9200;
}
location = /50x.html { location = /50x.html {
root html; root html;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment