12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <VirtualHost *:80>
- ServerName {{ webmail_domain }}
-
- Redirect permanent / https://{{ webmail_domain }}/
- </VirtualHost>
-
- <VirtualHost *:443>
- ServerName {{ webmail_domain }}
-
- Include /etc/apache2/ssl.conf
-
- # Those aliases do not work properly with several hosts on your apache server
- # Uncomment them to use it or adapt them to your configuration
- # Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
- # Alias /roundcube /var/lib/roundcube
-
- # Access to tinymce files
- DocumentRoot /var/lib/roundcube
- <Directory "/usr/share/tinymce/www/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride None
- Order allow,deny
- allow from all
- </Directory>
-
- <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
- order allow,deny
- allow from all
- </Directory>
-
- # Protecting basic directories:
- <Directory /var/lib/roundcube/config>
- Options -FollowSymLinks
- AllowOverride None
- </Directory>
-
- <Directory /var/lib/roundcube/temp>
- Options -FollowSymLinks
- AllowOverride None
- Order allow,deny
- Deny from all
- </Directory>
-
- <Directory /var/lib/roundcube/logs>
- Options -FollowSymLinks
- AllowOverride None
- Order allow,deny
- Deny from all
- </Directory>
-
- CustomLog /var/log/apache2/webmail_access.log combined
- ErrorLog /var/log/apache2/webmail_error.log
- </VirtualHost>
|