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
5 <IfModule mod_rewrite.c>
9 RewriteCond %{HTTPS} !=on
10 RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]
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
22 # End update by CARNet package squirrelmail-cn -- DO NOT DELETE THIS LINE!
23 Alias /squirrelmail /usr/share/squirrelmail
25 <Directory /usr/share/squirrelmail>
26 Options Indexes FollowSymLinks
28 php_flag register_globals off
31 php_flag register_globals off
34 DirectoryIndex index.php
37 # access to configtest is limited by default to prevent information leak
38 <Files configtest.php>
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
51 # redirect to https when available (thanks omen@descolada.dartmouth.edu)
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.
57 #<IfModule mod_rewrite.c>
58 # <IfModule mod_ssl.c>
59 # <Location /squirrelmail>
61 # RewriteCond %{HTTPS} !^on$ [NC]
62 # RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]