Created
April 3, 2011 08:33
-
-
Save ego008/900293 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
http { | |
gzip on; | |
gzip_disable "MSIE [1-6]\.(?!.*SV1)"; | |
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; | |
} | |
} | |
#下面一行是301转向 | |
server { | |
server_name xibu.biz; | |
rewrite ^/(.*) http://www.xibu.biz/$1 permanent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment