diff options
author | drebs <drebs@riseup.net> | 2011-03-11 14:53:39 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2011-03-11 14:53:39 -0300 |
commit | 01b2048dbf02ac726dabde5e846b9d6ac9aff0e6 (patch) | |
tree | 28f13f07a483a73ffcbfb25e4aba0c40f3d656bb /templates/apache/vhosts/mail.erb | |
download | puppet-bootstrap-01b2048dbf02ac726dabde5e846b9d6ac9aff0e6.tar.gz puppet-bootstrap-01b2048dbf02ac726dabde5e846b9d6ac9aff0e6.tar.bz2 |
initial recommit
Diffstat (limited to 'templates/apache/vhosts/mail.erb')
-rw-r--r-- | templates/apache/vhosts/mail.erb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/apache/vhosts/mail.erb b/templates/apache/vhosts/mail.erb new file mode 100644 index 0000000..1467c47 --- /dev/null +++ b/templates/apache/vhosts/mail.erb @@ -0,0 +1,33 @@ +# begin vhost for mail.<%= domain > +<VirtualHost *:80> + ServerName mail.<%= domain > + DocumentRoot /usr/share/squirrelmail + + # begin mail config + <Directory /var/www/data/mail> + Options Indexes Includes FollowSymLinks MultiViews + AllowOverride All + </Directory> + # end mail 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> +</VirtualHost> +# end vhost for mail.<%= domain > |