I have the following:
<VirtualHost *:80>
     ServerName sm.example.com
     ServerAlias securemail.example.com
     ServerAlias webmail.example.com
     ServerAdmin [email protected]
     DocumentRoot /usr/local/www/squirrelmail/
     #SSLCertificateFile /usr/local/etc/apache22/server.pem
     #SSLCertificateKeyFile /usr/local/etc/apache22/server.key
     ErrorLog /var/log/httpd-error.log
     CustomLog /var/log/httpd-access.log combined
     DirectoryIndex secure.html
</VirtualHost>

All the server aliases have DNS CNAMEs that point to the correct IP,  
but only the serverName directive works.  Do I have to do something  
like this:

<VirtualHost *:80>
     ServerName sm.example.com
     ServerAdmin [email protected]
     DocumentRoot /usr/local/www/squirrelmail/
     #SSLCertificateFile /usr/local/etc/apache22/server.pem
     #SSLCertificateKeyFile /usr/local/etc/apache22/server.key
     ErrorLog /var/log/httpd-error.log
     CustomLog /var/log/httpd-access.log combined
     DirectoryIndex secure.html
</VirtualHost>

<virtualhost: *:80>
  Servername webmail.example.com
  redirect permanent / http://sm.example.com
</virtualhost>


-- 
Lithium will no longer be available on credit


------------------------------------------------------------------------------
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to