Skip to content

Instantly share code, notes, and snippets.

@southill
Created January 1, 2016 06:22
Show Gist options
  • Save southill/ad585973a421125b0fcf to your computer and use it in GitHub Desktop.
Save southill/ad585973a421125b0fcf to your computer and use it in GitHub Desktop.
域名反向代理 #nginx #location #真实IP
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