I'm running multiple virtual servers on my home network and all have access to my squirrelmail. The following is my httpd.conf with the rewrite and redirect information.

<VirtualHost xxx.xxx.xxx.xxx:80>
   DocumentRoot  /....my path../squirrelmail
   RewriteEngine on
   RewriteRule ^/webmail https://%{SERVER_NAME}/webmail [R]

</VirturalHost>

I don't seem to have any problems I've been seeing reported on this list. I'm running RH 9.0 with Apache 2.x.

Hope this helps a bit.
Robbin

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



-- ''~`` ( o o ) +----------------------.oooO--(_)--Oooo.----------------------+ | Robbin Turner [EMAIL PROTECTED] | | Lead Info Systems Engineer CISSP, RHCE | | G071 - Cyber Analysis and Investigations (703) 883-7775 (V) | | The MITRE Corporation (888) 645-0576 (P) | | Mail Stop T420 (703) 883-4589 (F) | | 7515 Colshire Drive McLean, VA 22102 | |=============================================================| | Any married man should forget his mistakes - | |there's no point in two people remembering the same thing... | | .oooO | | ( ) Oooo. | +-------------------------\ (----( )------------------------+ \_) ) / (_/



-------------------------------------------------------
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