Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created September 28, 2015 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save random-robbie/c5458feea5eef87da3f7 to your computer and use it in GitHub Desktop.
Save random-robbie/c5458feea5eef87da3f7 to your computer and use it in GitHub Desktop.
reverse proxy -
## send request back to apache1 ##
location / {
proxy_pass http://$host$uri;
proxy_set_header Accept-Encoding "";
proxy_redirect off;
proxy_buffering off;
proxy_ssl_verify off;
proxy_ssl_server_name on;
proxy_set_header Host $host;
resolver 8.8.8.8;
proxy_set_header X-Forwarded-For 209.239.112.104;
proxy_set_header X-Real-IP 209.239.112.104;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment