aboutsummaryrefslogtreecommitdiff
path: root/templates/apache/vhosts/mail.erb
blob: 1467c470a4ca33fc079d6b595e64e05e1a2579e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 >