-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhttp_roundcube.conf.template
37 lines (27 loc) · 1.1 KB
/
http_roundcube.conf.template
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
<IfModule mod_ssl.c>
# Derived from /etc/apache2/sites-available/default-ssl.conf. For more
# info on Apache2/Debian, see /usr/share/doc/apache2/README.Debian.gz
# See also global directives in /etc/apache2/conf-enabled/roundcube.conf
<VirtualHost *:443>
ServerAdmin webmaster@${DOMAIN}
ServerName ${WEBMAIL_FQDN}
DocumentRoot /var/lib/roundcube/
ErrorLog ${APACHE_LOG_DIR}/roundcube-error.log
CustomLog ${APACHE_LOG_DIR}/roundcube-access.log combined
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# If both key and certificate are stored in the same file, only
# the SSLCertificateFile directive is needed.
SSLCertificateFile /etc/letsencrypt/acme.sh/cert-${DOMAIN}.pem
SSLCertificateKeyFile /etc/letsencrypt/acme.sh/cert-${DOMAIN}.key
SSLCertificateChainFile /etc/letsencrypt/acme.sh/fullchain-${DOMAIN}.pem
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet