this should be easy...just configure the NameVirtualHost directive within your httpd.conf file. Then set up a virtual host. Then just redirect to the https://webmail...I use this method...of course I also use the Redirect directive within httpd.conf to accomplish the redirect to https. There are many examples on the net for setting up virtual hosts and redirects.

=G=

Mike Campbell wrote:

Good idea but it didn't work as expected. For some reason it got into an infinite loop and the apache logs showed the error:

192.168.1.102 - - [05/Mar/2004:07:42:06 -0600] "GET /webmailwebmailwebmailwebmai
lwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwe
bmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebma
ilwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailw
ebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebm
ailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmail
webmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailweb
mailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmai
lwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwebmailwe
bmailwebmailwebmailwebmailwebmail HTTP/1.1" 301 1045


At that point I got a redirect limit error.

Remember that this is a single server and has a single IP address. Both www.ec.org and webmail.ec.org are resolvable but they point to the same IP address.

Any more suggestions???

p dont think wrote, On 3/4/2004 7:04 PM:

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_id=1470&alloc_id=3638&op=click -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users




-------------------------------------------------------
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_id=1470&alloc_id=3638&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to