default.conf 757 B

1234567891011121314151617181920212223242526272829
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name localhost;
  5. location / {
  6. root /usr/share/nginx/html;
  7. index index.html index.htm;
  8. }
  9. error_page 500 502 503 504 /50x.html;
  10. location = /50x.html {
  11. root /usr/share/nginx/html;
  12. }
  13. # 支付接口
  14. location /pay/ {
  15. # proxy_set_header Host $host;
  16. # proxy_set_header X-Forwarded-For $remote_addr;
  17. # proxy_set_header X-Forwarded-Host $server_name;
  18. # proxy_set_header X-Real-IP $remote_addr;
  19. proxy_set_header X-Real-IP $remote_addr;
  20. proxy_set_header X-Forwarded-For $remote_addr;
  21. # real_client_ip = $realip_remote_addr;
  22. proxy_pass http://b97cb4bf0e31:8888/pay/;
  23. }
  24. }