Skip to content

Instantly share code, notes, and snippets.

@xiaoysh8
Last active August 4, 2017 23:59
Show Gist options
  • Save xiaoysh8/e31f7926a7e071858877ac66194afe8f to your computer and use it in GitHub Desktop.
Save xiaoysh8/e31f7926a7e071858877ac66194afe8f to your computer and use it in GitHub Desktop.
nginx
location /shop/ {
proxy_pass http://shop.jvawa.com/;
proxy_buffers 8 24k;
proxy_buffer_size 2k;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host:$server_port;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Via "ngi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment