[Centos] Apache config for Squirrelmail?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, 21 Mar 2005 10:43:09 +0200 Micha Silver <micha@xxxxxxxxxxx> 
wrote:


> James B. Byrne wrote:

>> 
>> What I desire is for users to reach the webmail interface
>> directly from a host name and not require them to append
>> /webmail to the base url.  What configuration directives 
>> do I need to accomplish this? 
>>

Micha Silver <micha@xxxxxxxxxxx> replied:

> I think what you need is something like: Redirect permanent
> http://webmail.harte-lyne.ca
> https://webmail.harte-lyne.ca/webmail 

This does not work.

The altered configuration file is:

#
# SquirrelMail is a webmail package written in PHP.
#
Alias                   /webmail        /usr/share/squirrelmail


Redirect permanent      http://webmail.harte-lyne.ca \
                        https://webmail.harte-lyne.ca/webmail

<Directory /usr/share/squirrelmail>

        RewriteEngine       on
        RewriteCond         %{SERVER_PORT} !=443
        RewriteRule         ^.* - [F]
        ErrorDocument       403 https://inet07.hamilton.harte-
lyne.ca/webmail

</Directory>

<VirtualHost>
ServerAlias webmail.*
ServerAdmin postmaster.webmail@xxxxxxxxxxxxx
DocumentRoot /usr/share/squirrelmail

<Directory /usr/share/squirrelmail>

        Order allow,deny
        Allow from all

        DirectoryIndex  index.php
        RewriteEngine   on

        RewriteCond     %{SERVER_PORT} !=443
        RewriteRule     ^.* - [F]
        ErrorDocument   403 https://inet07.hamilton.harte-
lyne.ca/webmail

</Directory>

Alias /webmail /usr/share/squirrelmail

</VirtualHost>

http://webmail.harte-lyne.ca/ goes to the CentOS page
http://webmail.harte-lyne.ca/webmail goes to squirrelmail

This is an esoteric exercise for me so any of you with extensive 
experience in url rewriting please feel free to offer any advice.  
As far as I can see the presence of the index.php in 
/usr/share/squirrelmail should work straight off without any need 
for this but it does not.

Regards,
Jim

--   
     *** e-mail is not a secure channel ***
mailto:byrnejb.<token>@harte-lyne.ca
James B. Byrne                Harte & Lyne Limited
vox: +1 905 561 1241          9 Brockley Drive
fax: +1 905 561 0757          Hamilton, Ontario
<token> = hal                 Canada L8E 3C3


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux