Commit 07fab42f by wutong

Nginx CD/CI

parent 723ed86d
...@@ -63,17 +63,19 @@ http { ...@@ -63,17 +63,19 @@ http {
server 172.31.255.174; server 172.31.255.174;
} }
upstream baidu { upstream baidu {
server www.baidu.com; server data.bailuntec.com;
} }
server { server {
listen 80; listen 80;
server_name 111.230.84.223; server_name 111.230.84.223;
location /BaseApi/common { location / {
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html last;
proxy_pass http://baidu; proxy_pass http://baidu;
} }
location = /50x.html { location = /50x.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