Last active
August 4, 2017 23:59
-
-
Save xiaoysh8/e31f7926a7e071858877ac66194afe8f to your computer and use it in GitHub Desktop.
nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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