egscripts/egserverinstall/templates/apache-ssl

33 lines
1 KiB
Text
Raw Normal View History

<IfModule mod_ssl.c>
<VirtualHost *:443>
DocumentRoot /var/www/webmail
ServerName mail.DOMAINNAME
ServerAlias webmail.DOMAINNAME
ServerAdmin webmaster@DOMAINNAME
DirectoryIndex index.html index.php
ErrorLog /var/log/apache2/ssl-error.log
CustomLog /var/log/apache2/access.log combined
AddType application/x-httpd-php .php
php_admin_flag safe_mode Off
SSLEngine on
SSLCACertificateFile /etc/ssl/certs/cacert.pem
SSLCertificateFile /etc/apache2/ssl/www.pem
SSLCertificateKeyFile /etc/apache2/ssl/www.key
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
Alias /munin "/var/www/munin/"
# Alias /webmail "/usr/share/squirrelmail"
</VirtualHost>