Got Google Apps

Google is a really good and useful company! I registered Google Apps just for fun. And now I have the email address ended with @zhujunsan.net without setting up a mail server.

But one thing disturbed me is the GFW… It start dropping packages when someone access the Gmail server. Not to mention that all the IP addresses of ghs.google.com are unavailable in the China main land. So sad…

So how can I access mail.zhujunsan.net with out using ghs.google.com?

Do the nginx rewrite.

Here’s the conf file:


server {
    listen 80;
    server_name mail.yourdomain;
    rewrite ^(.*) https://mail.google.com/a/yourdomain permanent;
}

Include it into the nginx main conf file and reload the nginx. And it should work.

Google Docs and other services are very the same. Hope it’s helpful.

4 thoughts on “Got Google Apps”

  1. 这个..这个只是吧网址改写了啊…

    我看仿佛可以有个反向代理把到ghs.google.com的从ghs.zhujunsan.net这样走,然后所有的设置就都省事了

    1. 嗯那种也只是把ghs.zhujunsan.net指向ghs.google.com的可用IP而已,但是可用IP现在已经没有了,全被墙了

      1. 只是指一下么?我看说是“反向代理”,应该是数据都从VPN走吧,那样的话应该会没事才对。。

        但是我真的是搞不太明白那个设置,最近又没心情去仔细研究

        1. 哦@@大概是用nginx搞个代理然后直接走它的通道。嗯不高兴搭,不过不是很麻烦

Leave a Reply

Your email address will not be published. Required fields are marked *