Alternc  latest
Alternc logiel libre pour l'hébergement
roundcube-ssl.conf
Go to the documentation of this file.
1 <Virtualhost *:80>
2  ServerName %%fqdn%%
3  AssignUserId #%%UID%% #%%GID%%
4  SetEnv LOGIN "%%UID%%-%%LOGIN%%"
5 
6  KeepAlive Off
7 
8  RewriteEngine On
9  RewriteCond %{REQUEST_FILENAME} !/cgi-bin/
10  RewriteRule ^/(.*)$ https://%%fqdn%%/$1 [R=301,L]
11 
12 </Virtualhost>
13 <VirtualHost *:443>
14  ServerName %%fqdn%%
15  AssignUserId www-data www-data
16  SetEnv LOGIN "0000-roundcube"
17 
18  DocumentRoot /var/lib/roundcube
19 
20  # Access to tinymce files
21  <Directory "/usr/share/tinymce/www/">
22  Options Indexes MultiViews FollowSymLinks
23  AllowOverride None
24  Order allow,deny
25  allow from all
26  </Directory>
27 
28  <Directory /var/lib/roundcube/>
29  Options +FollowSymLinks
30  # This is needed to parse /var/lib/roundcube/.htaccess. See its
31  # content before setting AllowOverride to None.
32  AllowOverride All
33  order allow,deny
34  allow from all
35  </Directory>
36 
37  # Protecting basic directories:
38  <Directory /var/lib/roundcube/config>
39  Options -FollowSymLinks
40  AllowOverride None
41  </Directory>
42 
43  <Directory /var/lib/roundcube/temp>
44  Options -FollowSymLinks
45  AllowOverride None
46  Order allow,deny
47  Deny from all
48  </Directory>
49 
50  <Directory /var/lib/roundcube/logs>
51  Options -FollowSymLinks
52  AllowOverride None
53  Order allow,deny
54  Deny from all
55  </Directory>
56 
57  Alias /javascript /usr/share/javascript/
58 
59  <Directory "/usr/share/javascript/">
60  Options FollowSymLinks MultiViews
61  Order allow,deny
62  Allow from all
63  </Directory>
64 
65  SSLEngine On
66  SSLCertificateFile %%CRT%%
67  SSLCertificateKeyFile %%KEY%%
68  %%CHAINLINE%%
69 
70 </VirtualHost>