将圆形环转向虚拟主机

我在Ubuntu 14.04盒子上运行我的邮件服务器没有任何问题。 要检查电子邮件,我已经安装了使用aptitude的deb软件包的roundcube。 该程序安装到/ usr / share / roundcube,并通过这种方式设置conf conf:

# Those aliases do not work properly with several hosts on your apache server # Uncomment them to use it or adapt them to your configuration Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/ Alias /roundcube /var/lib/roundcube # Access to tinymce files <Directory "/usr/share/tinymce/www/"> Options Indexes MultiViews FollowSymLinks AllowOverride None <IfVersion >= 2.3> Require all granted </IfVersion> <IfVersion < 2.3> Order allow,deny Allow from all </IfVersion> </Directory> <Directory /var/lib/roundcube/> Options +FollowSymLinks # This is needed to parse /var/lib/roundcube/.htaccess. See its # content before setting AllowOverride to None. AllowOverride All <IfVersion >= 2.3> Require all granted </IfVersion> <IfVersion < 2.3> Order allow,deny Allow from all </IfVersion> </Directory> 

现在在此服务器上托pipe的每个域上,如果我在URL的末尾添加/ roundcube,则会看到roundcubelogin页面。 据我所知,这是由conf文件中的前两行设置的。 我没有这么强大的Apacheconfiguration,看看我应该做什么,然后评论他们设置roundcube只能与像webmail.my_mail_server.com这样的域可达。这个域正确地parsing我的邮件服务器。 这个问题只在apache方面。 谢谢您的帮助!

假设其他的东西已经到位(适当的Listen和/或NameVirtualHost指令,DNS别名等等),它应该像包装整个configuration内容到一个<VirtualHost>块一样简单,就像这样:

 <VirtualHost *:80> ServerName webmail.my_mail_server.com .... [exsiting config from above] .... </VirtualHost>