-
Notifications
You must be signed in to change notification settings - Fork 12
/
roundcube.conf
51 lines (50 loc) · 1.88 KB
/
roundcube.conf
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
39
40
41
42
43
44
45
46
47
48
49
50
51
<VirtualHost *:80>
ServerName webmail.example.tld
Redirect permanent / https://webmail.example.tld/
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName webmail.example.tld
ServerAdmin webmaster@example.tld
Protocols h2 h2c http/1.1
ProtocolsHonorOrder Off
H2Push Off
H2EarlyHints on
DocumentRoot /opt/roundcube
DirectoryIndex index.php
ErrorLog ${APACHE_LOG_DIR}/roundcube_error.log
CustomLog ${APACHE_LOG_DIR}/roundcube_access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/exampleMail.crt
SSLCertificateKeyFile /etc/ssl/private/exampleMail.key
SSLOpenSSLConfCmd DHParameters "/etc/ssl/dh2048.pem"
SSLProtocol -all +TLSv1.3 +TLSv1.2
SSLOpenSSLConfCmd Curves X25519:secp521r1:secp384r1:prime256v1
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM
SSLHonorCipherOrder on
SSLOptions +StrictRequire
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
<Directory /opt/roundcube>
Options +FollowSymlinks -Indexes -Includes
AllowOverride All
Require all granted
SetEnv HOME /opt/roundcube
SetEnv HTTP_HOME /opt/roundcube
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
<Directory /opt/roundcube/program/resources>
<FilesMatch "\.(pdf)$">
Require all denied
</FilesMatch>
</Directory>
</VirtualHost>
</IfModule>