|
@@ -14,12 +14,12 @@ server {
|
|
}
|
|
}
|
|
|
|
|
|
# 支付接口
|
|
# 支付接口
|
|
- location /pay/ {
|
|
|
|
|
|
+ location / {
|
|
proxy_set_header Host $host:$server_port; #远程主机 IP:PORT
|
|
proxy_set_header Host $host:$server_port; #远程主机 IP:PORT
|
|
proxy_set_header X-Real-PORT $remote_port; #远程端口
|
|
proxy_set_header X-Real-PORT $remote_port; #远程端口
|
|
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; #远程代理地址
|
|
- proxy_pass http://pay:8888/pay/;
|
|
|
|
|
|
+ proxy_pass http://pay:8888/;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|