Mobile app version of vmapp.org
Login or Join
Reiling115

: Apache 2 virtual host configuration for subdomain redirection 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

@Reiling115

Posted in: #Apache #Redirects #Subdomain

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 / mail.google.com/a/foo.com/ </VirtualHost>


What else do I need to get this to work?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Reiling115

1 Comments

Sorted by latest first Latest Oldest Best

 

@XinRu657

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)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme