I'm trying to set 'webmail.' as a subdomain for all virtual domains on the server.
The webmail domain will host roundcube, which is currently installed and accessible on '/roundcube'.
I'm using CentOS6.3 and Apache web server 2.2.15
The following is my httpd.conf for RoundCube.
It was like this...
Alias /roundcube /usr/share/roundcubemail
<Directory /usr/share/roundcubemail/>
Order Deny,Allow
Deny from all
Allow from All
</Directory>
and now it's like this...
<VirtualHost *:80>
ServerName webmail.{HTTP_HOST}
ServerAlias webmail.{HTTP_HOST}
DocumentRoot /usr/share/roundcubemail
CustomLog /var/log/httpd/sites/roundcube.{HTTP_HOST}.bytes bytes
CustomLog /var/log/httpd/sites/roundcube.{HTTP_HOST}.log combined
ErrorLog /var/log/httpd/sites/roundcube.{HTTP_HOST}.error.log
<Directory /usr/share/roundcubemail>
Options +Includes -Indexes
</Directory>
</VirtualHost>
which doesn't work!
I restarted httpd after making the change, but I'm getting "Server not found".
Thanks in advance.
Peter