Created
January 1, 2016 06:22
-
-
Save southill/ad585973a421125b0fcf to your computer and use it in GitHub Desktop.
域名反向代理 #nginx #location #真实IP
This file contains 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 ^~ / | |
{ | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header REMOTE-HOST $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://xxx.igumo.cc/; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment