Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set up a mail subdomain on my site that will simply redirect to my Google Apps mail account. I thought I could use the Apache 2 vhost configuration below, but it's not working:

<VirtualHost *:80>
  ServerName mail.foo.com
  Redirect 301 / https://mail.google.com/a/foo.com/

What else do I need to get this to work?

share|improve this question
up vote 1 down vote accepted

Do you have a corresponding A record for mail.foo.com. (or *.foo.com.) set?


*.foo.com. 14400 IN A

... or:

mail.foo.com. 14400 IN A

(Where is the IP address of the server running Apache 2)

share|improve this answer
D'oh! Thanks, I knew there was something I'd forgotten! – John Topley Oct 24 '10 at 9:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.