Server Fault is a question and answer site for system and network administrators. 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 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?

share|improve this question
up vote 1 down vote accepted

It is definitely possible, but you would have to use a Redirect instead of an alias.

Redirect /mail https://mail.example.com/mail
share|improve this answer

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.