Template update.
[carnet-upgrade.git] / files / etc / squirrelmail / apache.conf.restore
1 Alias /squirrelmail /usr/share/squirrelmail
2
3 <Directory /usr/share/squirrelmail>
4   Options Indexes FollowSymLinks
5   <IfModule mod_php4.c>
6     php_flag register_globals off
7   </IfModule>
8   <IfModule mod_php5.c>
9     php_flag register_globals off
10   </IfModule>
11   <IfModule mod_dir.c>
12     DirectoryIndex index.php
13   </IfModule>
14
15   # access to configtest is limited by default to prevent information leak
16   <Files configtest.php>
17     order deny,allow
18     deny from all
19     allow from 127.0.0.1
20   </Files>
21 </Directory>
22
23 # users will prefer a simple URL like http://webmail.example.com
24 #<VirtualHost 1.2.3.4>
25 #  DocumentRoot /usr/share/squirrelmail
26 #  ServerName webmail.example.com
27 #</VirtualHost>
28
29 # redirect to https when available (thanks omen@descolada.dartmouth.edu)
30 #
31 #  Note: There are multiple ways to do this, and which one is suitable for
32 #  your site's configuration depends. Consult the apache documentation if
33 #  you're unsure, as this example might not work everywhere.
34 #
35 #<IfModule mod_rewrite.c>
36 #  <IfModule mod_ssl.c>
37 #    <Location /squirrelmail>
38 #      RewriteEngine on
39 #      RewriteCond %{HTTPS} !^on$ [NC]
40 #      RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
41 #    </Location>
42 #  </IfModule>
43 #</IfModule>
44