可用ghs.littz.com替代Google域名托管ghs.google.com [ littz.com原创]
2009.06.11,添加https安全协议,并设置如请求为http协议自动301跳转到https协议。注:证书为CACert.org申请的免费证书,非商业证书,如有浏览器提示证书无法验证请选择例外。
2009.06.11,根据朋友的建议,出于搜索引擎收录问题暂时取消http自动跳转到https,但保留https,由访问者自选是否使用安全协议。
2009.12.31,恢复ghs.littz.com新进申请,老用户需要通过自主提交入口重新提交域名。
Google的App服务可以用两种地址来访问,一种是在google域内,比如http://www.google.com/a/littz.com/的形式,一种是在自定义域内,比如https://mail.littz.com的形式,后者只需要在google App设置里设置为自定义的域名,然后设置域名的CNAME到ghs.google.com。
但问题来了,这个ghs.google.com在国内被Kung Fu Wang了,直接按google默认要求的做是无法使用自定义域名访问App服务的,有些朋友提出手动找ghs.google.com的国内可用IP的方法,这样暂时可行,不过找可用IP麻烦并且经常需要更换,并且近期ghs可用IP告急难以寻找。
我利用本博客的VPS服务器搭建了Nginx平台,提供一种方法让大家透过Kung Fu Wang访问ghs.google.com从而域名绑定,例如Google Apps、Blogger等等。免费给大家使用,要求仅为不放置任何违反我国法律的内容,并且访问量不能太大以免影响本VPS正常使用。
一、Google Apps中设置你要绑定的应用域名,例如mail.littz.com。
二、Google会提示将该域名cname至ghs.google.com.,但不要这样做,因为国内无法访问ghs.google.com. 请将该域名cname至ghs.littz.com. 注意cname域名后面都有.
三、请由http://ghs.littz.com本提交入口提交你在Google上绑定的域名,其他问题请联系本人
四、等待缓存更新就可以访问了,例如本人的https://mail.littz.com。
注:使用Google企业邮箱、Site等绑定的域名意义不大,Google方面会做跳转。如果是绑定到Google Apps或者Blogger的域名效果比较好,Google方面不会跳转。
原理:Nginx用做反向代理负载均衡服务器,本博客网站为从瑞豪开源(RASHOST.com)购买的美国VPS服务器,自行配置服务器软件,有来自指定域名的请求时,由本服务器连接至ghs.google.com,只要你能连接上我的VPS IP 64.71.167.26就没问题了。
附Nginx配置:希望其他有能力的朋友也建立可用的GHS替代方案,人多力量大,谢谢!
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;
}
server {
listen 64.71.167.26:80;
server_name mail.littz.com oeway.littz.com;
access_log /data0/logs/nginx/ghs.littz.com.log normallog;
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;
}
}
server {
listen 64.71.167.26:443;
server_name mail.littz.com oeway.littz.com;
access_log /data0/logs/nginx/ghs.littz.com.log normallog;
ssl on;
ssl_certificate server.crt;
ssl_certificate_key server.key;
error_page 497 "https://$host$uri";
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;
}
}
ssl只存在于访问者与本VPS服务器之间,VPS连接Google没有https,基于如下原因:1、美国VPS连接到美国Google不受限制;2、Nginx的upstream暂不支持https的负载均衡。
开启ssl可以防止基于Key Words的Filter,可以放心使用,但请不要将本ghs.littz.com可用资源用于恶意及反/动使用,否则本人有权更换IP并对该恶意使用者终止服务。
如果您对数据的安全性要求非常高,不希望通过本VPS中转,或者基于其它原因想直接只用ghs.google.com,可以考虑使用该网站提供的寻找ghs可用IP的方法http://ghs.s4ng.com/
附件列表:
ghs
ghs (点击图片查看大图)
KILLMOON
随风随行のland
SandLog
2010/03/08 09:51:10
添加TK域名时提示,域名格式有误或为不支持的域名
2010/03/08 08:49:41
.tk的域名无法添加呀?
2010/01/17 14:38:01
upstream需要放在http段
2010/01/17 03:38:07
你好, 我配置的时候出现 [emerg]: unknown directive "upstream" in /usr/local/nginx/conf/nginx.conf:12
这个是什么问题.
2009/12/31 17:52:07
谢谢提供的服务 太感谢了
2009/12/26 19:34:08
为什么不用StartSSL的证书?很多浏览器支持,包括IE。
2009/12/04 23:12:02
谢谢littlehz
wo.loft pub.com状态很好的说
2009/11/25 18:31:32
欢迎~
发表于 2009/11/25 09:52:26
你好,按照你和张宴的方法我的vps和ghs也配置成功了http://blog.hong7.com.再次感谢,我已将你添加了链接。常联系。
2009/11/25 09:52:26
你好,按照你和张宴的方法我的vps和ghs也配置成功了http://blog.hong7.com.再次感谢,我已将你添加了链接。常联系。
2009/11/20 00:02:45
http://site.beonchina.com
2009/11/17 14:06:05
2009/11/17 11:08:56
2009/11/16 22:56:05
2009/11/16 17:58:27
2009/11/16 17:54:09
2009/11/16 13:58:55
2009/11/16 09:25:57
2009/11/15 18:02:23
www.opython.com/opython.com
2009/11/15 00:01:33
blog.5onion.com
主要是想用下google app,谢谢~
2009/11/14 22:08:52