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.