server { listen 80; server_name www.cestong.com; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location / { if ($request_method = 'OPTIONS') { return 204; } proxy_pass http://172.24.100.101:9088; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /ping { return 200 'pong'; } }