From 2cded20232a1354d70f461a30bed0c035c0d77cd Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 9 May 2011 10:32:29 -0300 Subject: Updating mail vhost --- templates/apache/vhosts/mail.erb | 57 +++++++++++++++++++++++++++++++++------- 1 file changed, 48 insertions(+), 9 deletions(-) diff --git a/templates/apache/vhosts/mail.erb b/templates/apache/vhosts/mail.erb index 1467c47..cd4a3f8 100644 --- a/templates/apache/vhosts/mail.erb +++ b/templates/apache/vhosts/mail.erb @@ -1,15 +1,10 @@ # begin vhost for mail.<%= domain > - ServerName mail.<%= domain > - DocumentRoot /usr/share/squirrelmail + ServerName mail.<%= domain > + #DocumentRoot /usr/share/squirrelmail + DocumentRoot /var/lib/roundcube - # begin mail config - - Options Indexes Includes FollowSymLinks MultiViews - AllowOverride All - - # end mail config - + # begin squirrel config Options Indexes FollowSymLinks @@ -29,5 +24,49 @@ allow from 127.0.0.1 + # end squirrel config + + # begin roundcube config + # Access to tinymce files + Alias /roundcube /var/lib/roundcube + Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/ + + + Options Indexes MultiViews FollowSymLinks + AllowOverride None + Order allow,deny + allow from all + + + + 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 + + + # Protecting basic directories: + + Options -FollowSymLinks + AllowOverride None + + + + Options -FollowSymLinks + AllowOverride None + Order allow,deny + Deny from all + + + + Options -FollowSymLinks + AllowOverride None + Order allow,deny + Deny from all + + # end roundcube config + # end vhost for mail.<%= domain > -- cgit v1.2.3