diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 12:47:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 12:47:46 -0300 |
commit | 529cd5077e3d76c1d5b612bc146ab174d7143c30 (patch) | |
tree | da86fdf7c5e9fa6ebf752ffdd6515400057757a8 /templates/apache/vhosts/mail.erb | |
download | debian-529cd5077e3d76c1d5b612bc146ab174d7143c30.tar.gz debian-529cd5077e3d76c1d5b612bc146ab174d7143c30.tar.bz2 |
Squashed 'puppet/' content from commit bb2eae6
git-subtree-dir: puppet
git-subtree-split: bb2eae6f3a1f44fef0a05000d79c298442fa24c7
Diffstat (limited to 'templates/apache/vhosts/mail.erb')
-rw-r--r-- | templates/apache/vhosts/mail.erb | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/templates/apache/vhosts/mail.erb b/templates/apache/vhosts/mail.erb new file mode 100644 index 0000000..3badcf0 --- /dev/null +++ b/templates/apache/vhosts/mail.erb @@ -0,0 +1,72 @@ +# begin vhost for mail.<%= domain > +<VirtualHost *:80> + ServerName mail.<%= domain > + #DocumentRoot /usr/share/squirrelmail + DocumentRoot /var/lib/roundcube + + # begin squirrel config + <Directory /usr/share/squirrelmail> + Options Indexes FollowSymLinks + <IfModule mod_php4.c> + php_flag register_globals off + </IfModule> + <IfModule mod_php5.c> + php_flag register_globals off + </IfModule> + <IfModule mod_dir.c> + DirectoryIndex index.php + </IfModule> + + # access to configtest is limited by default to prevent information leak + <Files configtest.php> + order deny,allow + deny from all + allow from 127.0.0.1 + </Files> + </Directory> + # end squirrel config + + # begin roundcube config + # Access to tinymce files + Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/ + Alias /roundcube /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> + # end roundcube config + +</VirtualHost> +# end vhost for mail.<%= domain > |