Ubuntu – Virtual Host for RoundCube

email-serverroundcubeUbuntuubuntu-10.04webmail

i have RoundCube setup on a ubuntu 10.04 server, and it works perfectly when browsing to address.tld/roundcube

however I would like to be able to go to mail.address.tld

for this I have added the following virtual host config:

<VirtualHost mail.address.tld>
ServerAdmin webmaster@localhost
ServerName mail.address.tld/roundcube
DocumentRoot /var/www/roundcube
<Directory /var/www/roundcube>
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /var/www/roundcube>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

The Roundcube page is able to open however the PHP functions do not work correctly. I would like to resolve that.

Best Answer

It looks like the ServerName line is wrong. Just delete the "/roundcube" at the end.

Please use the following and tell us, what your findings in /var/log/yourdomain.error.log are.

<VirtualHost mail.address.tld>
  ServerAdmin webmaster@localhost 
  ServerName mail.address.tld 
  DocumentRoot /var/www/roundcube 
  ErrorLog /var/log/yourdomain.error.log 
</VirtualHost>