Created
April 1, 2011 07:10
-
-
Save ego008/897851 to your computer and use it in GitHub Desktop.
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
upstream ghs { | |
ip_hash; | |
server ghs.google.com; | |
server 72.14.203.121; | |
server 72.14.207.121; | |
server 74.125.43.121; | |
server 74.125.47.121; | |
server 74.125.53.121; | |
server 74.125.77.121; | |
server 74.125.93.121; | |
server 74.125.95.121; | |
server 74.125.113.121; | |
server 216.239.32.21; | |
server 216.239.34.21; | |
server 216.239.36.21; | |
server 216.239.38.21; | |
} | |
# The ghs.google.com server | |
server { | |
listen 80; | |
#你只需修改下面一行,改为你的域名 | |
server_name www.xibu.biz; | |
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; | |
proxy_redirect false; | |
access_log off; | |
error_log off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment