Apache redirect alias to a different domain

Posted by John Magnolia on Server Fault See other posts from Server Fault or by John Magnolia
Published on 2012-10-26T09:40:50Z Indexed on 2012/10/26 11:03 UTC
Read the original article Hit count: 215

Filed under:

I previous had both Web and Mail on the same server and for each of my vhosts/domains, I could visit example.com/mail or foo.com/mail which would display the Roundcube Webmail across all vhosts.

E.g Alias /mail "/usr/share/apache2/roundcub/"

Although now I have moved the Mail server onto a completely different server and now have a SSL for the main domain. https://mail.example.com which is now the new location of Roundcube for all vhosts/domains.

Question: is it possible to redirect all alias for "/mail" from the Web server to the new URL?

© Server Fault or respective owner

Related posts about apache2