通过littz.cn和张宴博客的指导,本站建立了Nginx平台,并建立了一个ghs.google.com的替代方案。
用ghs.hong7.com 替换ghs.google.com
Google的App服务可以用两种地址来访问,一种是在google域内,比如http://www.google.com/a/hong7.com/的形式,一种是在自定义域内,比如https://mail.hong7.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.hong7.com。
二、Google会提示将该域名cname至ghs.google.com.,但不要这样做,因为国内无法访问ghs.google.com. 请将该域名cname至ghs.hong7.com. 注意cname域名后面都有.
三、通知本人你绑定了这个域名,因为我只有一个IP地址,网站与该应用共用,域名泛解析留做他用,我会在Nginx中设置你的域名,留言或lostdust#gmail.com(替换#为@)。
四、我这边配置完成后你就可以使用Google的域名绑定了,例如的http://mail.hong7.com。
原理:Nginx用做反向代理负载均衡服务器,本博客网站为从瑞豪开源(RASHOST.com)购买的美国VPS服务器,自行配置服务器软件,有来自指定域名的请求时,由本服务器连接至ghs.google.com,只要你能连接上我的VPS IP 204.74.211.186就没问题了。
附Nginx配置:希望其他有能力的朋友也建立可用的GHS替代方案,人多力量大,谢谢!
请不要将本ghs.hong7.com可用资源用于恶意及反/动使用,否则本人有权更换IP并对该恶意使用者终止服务。
如果您对数据的安全性要求非常高,不希望通过本VPS中转,或者基于其它原因想直接只用ghs.google.com,可以考虑使用该网站提供的寻找ghs.
用ghs.hong7.com 替换ghs.google.com
Google的App服务可以用两种地址来访问,一种是在google域内,比如http://www.google.com/a/hong7.com/的形式,一种是在自定义域内,比如https://mail.hong7.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.hong7.com。
二、Google会提示将该域名cname至ghs.google.com.,但不要这样做,因为国内无法访问ghs.google.com. 请将该域名cname至ghs.hong7.com. 注意cname域名后面都有.
三、通知本人你绑定了这个域名,因为我只有一个IP地址,网站与该应用共用,域名泛解析留做他用,我会在Nginx中设置你的域名,留言或lostdust#gmail.com(替换#为@)。
四、我这边配置完成后你就可以使用Google的域名绑定了,例如的http://mail.hong7.com。
原理:Nginx用做反向代理负载均衡服务器,本博客网站为从瑞豪开源(RASHOST.com)购买的美国VPS服务器,自行配置服务器软件,有来自指定域名的请求时,由本服务器连接至ghs.google.com,只要你能连接上我的VPS IP 204.74.211.186就没问题了。
附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 204.74.211.186:80;
server_name ghs.hong7.com mail.hong7.com;
#下行中的ghs换成自己定义的名称。
log_format ghs '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
#下行中两处ghs换成自己定义的名称。
access_log /data1/logs/ghs.log ghs;
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 204.74.211.186:443;
server_name ghs.hong7.com mail.hong7.com;
log_format mail '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /data1/logs/mail.log mail;
#如果不开启ssl下列4行可删除。
ssl on;
ssl_certificate ssl.crt;
ssl_certificate_key ssl.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;
}
}
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 204.74.211.186:80;
server_name ghs.hong7.com mail.hong7.com;
#下行中的ghs换成自己定义的名称。
log_format ghs '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
#下行中两处ghs换成自己定义的名称。
access_log /data1/logs/ghs.log ghs;
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 204.74.211.186:443;
server_name ghs.hong7.com mail.hong7.com;
log_format mail '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /data1/logs/mail.log mail;
#如果不开启ssl下列4行可删除。
ssl on;
ssl_certificate ssl.crt;
ssl_certificate_key ssl.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;
}
}
请不要将本ghs.hong7.com可用资源用于恶意及反/动使用,否则本人有权更换IP并对该恶意使用者终止服务。
如果您对数据的安全性要求非常高,不希望通过本VPS中转,或者基于其它原因想直接只用ghs.google.com,可以考虑使用该网站提供的寻找ghs.
original essay
2012/01/28 11:50
Badly accomplished custom essay would destroy your success. Nevertheless, when you buy term papers online of perfect quality, everything will be great.
essay service
2012/01/23 22:37
Oh my gosh! That is the charming thing I've ever seen !!!! Very often to receive the PhD degree you should buy essay writing service .
job for writers
2012/01/22 11:46
I do not see if you believe me, but, I would apprize your very good releases referring to this good post. Before this I took the aid of Freelance writing job service.
Jeremy Scott Adidas
2012/01/12 12:02
then this cardboard cut Christmas tree and then placed in the base that little plate, Adidas Jeremy Scott
artificial grass
2012/01/11 16:52
Really impressed! Everything is very open and very clear explanation of issues. It contains truly information. Your website is very useful. Thanks for sharing. Looking forward to more!
reverse cell phone lookup
2012/01/05 23:15
私はこのサイトを気に入って。それはクリーンで、シンプルかつエレガントな方法で設計されている - が、コンテンツは私が00224何です。
QueenGentry24
2012/01/02 09:17
Different scholars would like to find the economics thesis about this post. When they know about your superb thought, they will credibly order the thesis writing.
MARGERYEaton19
2011/12/31 05:15
If you try to find locality where you can get resume writing here is very first-class place for you about this topic, which arrange examples and gives an occasion to learn how make great CV resumes . But this site is more affecting, and more fortunate.
home loans
2011/12/23 14:56
I took my first mortgage loans when I was 20 and that supported my family a lot. However, I require the auto loan also.
writing services
2011/12/19 20:52
I'm new at this internet site. I am hired by the professional custom writing service. Therefore, I can assist all you with academic papers completing! Don't be afraid to reach me.
分页: 1/27
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
Nginx 0.8.x + PHP 5.2.10(FastCGI)搭建胜过Apache Web服务器[转载]
how to change apache .htaccess to nginx rewrite

2009/11/25 15:02 | by 