Skip to content

Instantly share code, notes, and snippets.

@jie
Created January 5, 2011 16:22
Show Gist options
  • Save jie/766536 to your computer and use it in GitHub Desktop.
Save jie/766536 to your computer and use it in GitHub Desktop.
upstream ghs {
server ghs.google.com:80;
}
server {
listen 80;
server_name www.example.com;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_pass http://ghs;
proxy_set_header x-real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment