mail4:/etc/apache2/conf.d# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...[Thu Jul 26 00:16:37 2007] [warn] Virtu alHost mail4.tmnet.se:80 overlaps with VirtualHost webmail4.tmnet.se:80, the fir st has precedence, perhaps you need a NameVirtualHost directive
[Thu Jul 26 00:16:47 2007] [warn] VirtualHost mail4.tmnet.se:80 overlaps with VirtualHost webmail4.tmnet.se:80, the first has precedence, perhaps you need a NameVirtualHost directive
mail4:/etc/apache2/conf.d# cat squirrelmail.conf
Alias /squirrelmail /usr/share/squirrelmail
# users will prefer a simple URL like http://webmail.example.com
ServerName mail4.tmnet.se
DocumentRoot /var/www
ServerName webmail4.tmnet.se
RedirectMatch permanent .* https://webmail4.tmnet.se/
ServerName webmail4.tmnet.se:443
DocumentRoot /usr/share/squirrelmail
UseCanonicalName On
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
SSLCipherSuite HIGH
SSLProtocol all -SSLv2
# Redirect / https://bar.example.org/
Options Indexes FollowSymLinks
php_flag register_globals off
php_flag register_globals off
DirectoryIndex index.php
# access to configtest is limited by default to prevent information leak
order deny,allow
deny from all
allow from 127.0.0.1