1234567891011121314151617181920212223242526272829 |
- server {
- listen 80;
- listen [::]:80;
- server_name localhost;
- location / {
- root /usr/share/nginx/html;
- index index.html index.htm;
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- # 支付接口
- location /pay/ {
- # proxy_set_header Host $host;
- # proxy_set_header X-Forwarded-For $remote_addr;
- # proxy_set_header X-Forwarded-Host $server_name;
- # proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $remote_addr;
- # real_client_ip = $realip_remote_addr;
- proxy_pass http://127.0.0.1:8888/pay/;
- }
- }
|