> In fact, the simplest method i've found to do this:
>
> Put an "index.php" in your http://www.ec.org/webmail with the following:
>
> <?
> header("Location:
> https://www.ec.org/webmail/src/login.php?secure_login=yes");
> ?>
>
> This will cause the user's browser to immediately jump to the specified
> location.

This doesn't help with his need to make webmail.ec.org go to the same place.
In fact, this is what the secure_login plugin already does.

Try this in httpd.conf:

<VirtualHost webmail.ec.org>
  Redirect permanent / http://www.ec.org/webmail
  ServerName www.ec.org
</VirtualHost>

Assuming you have already have a DNS entry for webmail.ec.org...

>> What I'd like to setup is an apache alias/virtualhost so that I can
>> access http://webmail.ec.org and have it automatically take me to the SM
>> login page in https mode.
>>
>> I have played around with the apache virtualhost parameter but have not
>> yet gotten the right combination so perhaps someone here can help me.
>>
>> I have a single IP address on the machine and would like to be able to
>> access the following:
>>
>> 1) http://www.ec.org ==> goes to main site page
>> 2) http://ec.org ==> goes to main site page
>> 3) http://webmail.ec.org ==> redirects to SM login in https mode
>> 4) https://webmail.ec.org ==> SM login page in https mode
>> 5) http://www.ec.org/webmail ==> SM login page in https mode



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to