upstream rungobackend { server 127.0.0.1:28889; keepalive 128; } server { listen 80; server_name ostateapi.hiwavo.com; access_log /home/www/fohow/statement_api/go/gopath/src/fohow-statement-api/logs/ngx_access.log main; error_log /home/www/fohow/statement_api/go/gopath/src/fohow-statement-api/logs/ngx_error.log; location /report/ { allow 8.129.187.89; allow 47.52.141.54; deny all; alias /home/www/fohow/statement_api/go/gopath/src/fohow-statement-api/logs/goaccess/html/; } location =/MP_verify_oA3QuVJuxLN0Z3D2.txt { root /home/www/fohow/statement_api; } location =/3mft7ivXXx.txt { root /home/www/fohow/statement_api; } location =/3lojqxxPvq.txt { root /home/www/fohow/statement_api; } location / { proxy_next_upstream off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_pass http://rungobackend; } location /ngx { stub_status on; } }