1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# This example config loads SqWebMail at https://sqwebmail.example.com.
# It requires that mod_cgi or mod_cgid be enabled.
<VirtualHost *:443>
# Specify the Server Name.
ServerName sqwebmail.example.com
# Enable SSL.
SSLEngine on
SSLCertificateFile /path/to/fullchain.pem
SSLCertificateKeyFile /path/to/privkey.pem
# Optionally specify sqwebmail specific logs.
ErrorLog /var/log/apache2/sqwebmail-error.log
TransferLog /var/log/apache2/sqwebmail-access.log
# Set the document root. When running as a host, 'sqwebmail.cgi' must be
# used instead of 'sqwebmail'.
DocumentRoot /usr/lib/cgi-bin/sqwebmail.cgi
# Set the sqwebmail alias, which is used to load CSS and other assets.
Alias /sqwebmail/ /usr/share/sqwebmail/
# Set the cgi-bin directory permissions. This must add a 'cgi-script'
# handler.
<Directory /usr/lib/cgi-bin/>
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi
AllowOverride None
Require all granted
</Directory>
# Set the sqwebmail directory permissions.
<Directory /usr/share/sqwebmail/>
Options None
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
|