2018-06-23 14:47:15 +00:00
|
|
|
<Virtualhost *:80>
|
|
|
|
ServerName %%fqdn%%
|
|
|
|
AssignUserId #%%UID%% #%%GID%%
|
|
|
|
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
|
|
|
|
|
|
|
|
KeepAlive Off
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !/cgi-bin/
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !/.well-known/acme-challenge/
|
|
|
|
RewriteRule ^/(.*)$ https://%%fqdn%%/$1 [R=301,L]
|
|
|
|
|
|
|
|
</Virtualhost>
|
|
|
|
<VirtualHost *:443>
|
2012-10-16 21:13:15 +00:00
|
|
|
ServerName %%fqdn%%
|
2014-03-27 15:04:30 +00:00
|
|
|
AssignUserId www-data www-data
|
|
|
|
SetEnv LOGIN "0000-roundcube"
|
2012-10-16 21:13:15 +00:00
|
|
|
|
2012-11-05 15:08:41 +00:00
|
|
|
DocumentRoot /var/lib/roundcube
|
2012-10-16 21:13:15 +00:00
|
|
|
|
2014-03-27 15:04:30 +00:00
|
|
|
# Access to tinymce files
|
|
|
|
<Directory "/usr/share/tinymce/www/">
|
2018-07-12 16:14:12 +00:00
|
|
|
Options +Indexes +MultiViews +FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
Require all granted
|
2014-03-27 15:04:30 +00:00
|
|
|
</Directory>
|
2012-10-16 21:13:15 +00:00
|
|
|
|
2014-03-27 15:04:30 +00:00
|
|
|
<Directory /var/lib/roundcube/>
|
|
|
|
Options +FollowSymLinks
|
|
|
|
# This is needed to parse /var/lib/roundcube/.htaccess. See its
|
|
|
|
# content before setting AllowOverride to None.
|
|
|
|
AllowOverride All
|
2018-06-23 14:47:15 +00:00
|
|
|
Require all granted
|
2014-03-27 15:04:30 +00:00
|
|
|
</Directory>
|
2012-10-16 21:13:15 +00:00
|
|
|
|
2014-03-27 15:04:30 +00:00
|
|
|
# Protecting basic directories:
|
|
|
|
<Directory /var/lib/roundcube/config>
|
|
|
|
Options -FollowSymLinks
|
|
|
|
AllowOverride None
|
2018-07-12 16:14:27 +00:00
|
|
|
Require all denied
|
2014-03-27 15:04:30 +00:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /var/lib/roundcube/temp>
|
|
|
|
Options -FollowSymLinks
|
|
|
|
AllowOverride None
|
2018-07-12 16:14:27 +00:00
|
|
|
Require all denied
|
2014-03-27 15:04:30 +00:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /var/lib/roundcube/logs>
|
|
|
|
Options -FollowSymLinks
|
|
|
|
AllowOverride None
|
2018-07-12 16:14:27 +00:00
|
|
|
Require all denied
|
2014-03-27 15:04:30 +00:00
|
|
|
</Directory>
|
2012-10-16 21:13:15 +00:00
|
|
|
|
|
|
|
Alias /javascript /usr/share/javascript/
|
|
|
|
|
|
|
|
<Directory "/usr/share/javascript/">
|
2018-07-12 16:14:12 +00:00
|
|
|
Options +FollowSymLinks +MultiViews
|
|
|
|
Require all granted
|
2012-10-16 21:13:15 +00:00
|
|
|
</Directory>
|
|
|
|
|
2018-06-23 14:47:15 +00:00
|
|
|
SSLEngine On
|
|
|
|
SSLCertificateFile %%CRT%%
|
|
|
|
SSLCertificateKeyFile %%KEY%%
|
|
|
|
%%CHAINLINE%%
|
|
|
|
|
2012-10-16 21:13:15 +00:00
|
|
|
</VirtualHost>
|