cecfweb.conf 507 B

123456789101112131415161718192021
  1. server {
  2. listen 80;
  3. server_name www.cestong.com;
  4. #charset koi8-r;
  5. #access_log /var/log/nginx/host.access.log main;
  6. location / {
  7. if ($request_method = 'OPTIONS') {
  8. return 204;
  9. }
  10. proxy_pass http://172.24.100.101:9088;
  11. proxy_set_header Host $host;
  12. proxy_set_header X-Real-IP $remote_addr;
  13. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  14. }
  15. location /ping {
  16. return 200 'pong';
  17. }
  18. }