Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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/
</VirtualHost>

What else do I need to get this to work?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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

Example:

*.foo.com. 14400 IN A 1.2.3.4

... or:

mail.foo.com. 14400 IN A 1.2.3.4

(Where 1.2.3.4 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
add comment

Your Answer

 
discard

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.