LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Redirect "/roundcube" to "webmail." for all virtual domains? (http://www.linuxquestions.org/questions/linux-server-73/redirect-roundcube-to-webmail-for-all-virtual-domains-4175421833/)

snowweb 08-13-2012 06:26 AM

Redirect "/roundcube" to "webmail." for all virtual domains?
 
I have the following line in my httpd.conf
Code:

Alias /roundcube /usr/share/roundcubemail
which means that to access Roundcube on any of the virtual domains, the user must go to http://www.example.com/roundcube

But I would like to give every domain a default subdomain of "webmail." instead.

Can someone tell me what I should replace the line above with please?

Kind regards,

Peter

I'm using Apache2.x, CentOS6.3

zhjim 08-13-2012 07:38 AM

Maybe this can work: http://httpd.apache.org/docs/2.2/mod...ost_alias.html
Or use mass vhosts. But I don't know if this can be configured to use a subdomain of various hosts. And not the other way like I understand it should work. various subdomains on one main domain.

snowweb 08-13-2012 09:58 AM

Many thanks Zhjim, that might be just what I need. I'll study it.


All times are GMT -5. The time now is 10:06 PM.