Template update.
[carnet-upgrade.git] / files / etc / squirrelmail / apache.conf.expect
1 # Begin update by CARNet package squirrelmail-cn -- DO NOT DELETE THIS LINE!
2 # Force SSL for /webmail -> you can still use /squirrelmail
3 Alias /webmail /usr/share/squirrelmail
4
5 <IfModule mod_rewrite.c>
6   <IfModule mod_ssl.c>
7     <Location /webmail>
8       RewriteEngine on
9       RewriteCond %{HTTPS} !=on
10       RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
11     </Location>
12   </IfModule>
13 </IfModule>
14
15 #
16 # WARNING: This file is automatically included in each VirtualHost
17 # entry you might have.  Do not enable the VirtualHost example provided
18 # in this file, it WILL break your Apache configuration. Copy the
19 # VirtualHost section to the standard webserver configuration file
20 # instead.
21 #
22 # End update by CARNet package squirrelmail-cn -- DO NOT DELETE THIS LINE!
23 Alias /squirrelmail /usr/share/squirrelmail
24
25 <Directory /usr/share/squirrelmail>
26   Options Indexes FollowSymLinks
27   <IfModule mod_php4.c>
28     php_flag register_globals off
29   </IfModule>
30   <IfModule mod_php5.c>
31     php_flag register_globals off
32   </IfModule>
33   <IfModule mod_dir.c>
34     DirectoryIndex index.php
35   </IfModule>
36
37   # access to configtest is limited by default to prevent information leak
38   <Files configtest.php>
39     order deny,allow
40     deny from all
41     allow from 127.0.0.1
42   </Files>
43 </Directory>
44
45 # users will prefer a simple URL like http://webmail.example.com
46 #<VirtualHost 1.2.3.4>
47 #  DocumentRoot /usr/share/squirrelmail
48 #  ServerName webmail.example.com
49 #</VirtualHost>
50
51 # redirect to https when available (thanks omen@descolada.dartmouth.edu)
52 #
53 #  Note: There are multiple ways to do this, and which one is suitable for
54 #  your site's configuration depends. Consult the apache documentation if
55 #  you're unsure, as this example might not work everywhere.
56 #
57 #<IfModule mod_rewrite.c>
58 #  <IfModule mod_ssl.c>
59 #    <Location /squirrelmail>
60 #      RewriteEngine on
61 #      RewriteCond %{HTTPS} !^on$ [NC]
62 #      RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
63 #    </Location>
64 #  </IfModule>
65 #</IfModule>
66