> -----Original Message-----
> From: adam beecher [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 09, 2005 2:21 PM
> To: Marc Powell; [email protected]
> Subject: RE: [SM-USERS] HTTPS auto-discovery causing page not founf
errors
>
> Hi Mark,
>
> You're absolutely right, and it's absolutely bizarre because I'm
getting
> cross-contamination between /web servers/, not VirtualHosts. For
example,
> PHP is showing up $_SERVER['HTTP_HOST'] correctly, but
$_ENV['HTTP_HOST']
> is
> coming up as the Webmin server running on my machine. Different ports,
> different software, different processes. Weird.
That's extremely interesting but I don't really know what to make of it.
It really sounds like some kind of shared memory corruption. I presume
you're using apache 2.x (I'm still at 1.3.33). What version of php are
you running? I guess it's time to see what came out in the most recent
Redhat update and see what's changed.
>
> Do you know if the URL is constructed in a particular function or
> location,
> or am I going to have to hack several scripts to get it working?
It's in just one place (functions/strings.php getlocation()). Here's the
diff for what I did. I presume blatantly that any HTTPS connection must
be on 443 only, else it's HTTP --
--- strings.php.20050804 2005-08-04 12:37:43.000000000 -0500
+++ strings.php 2005-08-09 15:00:22.000000000 -0500
@@ -202,7 +202,9 @@
* OR if you are on port 443
*/
$getEnvVar = getenv('HTTPS');
- if ((isset($getEnvVar) && !strcasecmp($getEnvVar, 'on')) ||
+ $my_port = getenv('SERVER_PORT'); /*marc
+# if ((isset($getEnvVar) && !strcasecmp($getEnvVar, 'on')) || */
+ if (($my_port == 443) ||
(sqgetGlobalVar('HTTPS', $https_on, SQ_SERVER) &&
!strcasecmp($https_on, 'on')) ||
(sqgetGlobalVar('SERVER_PORT', $server_port, SQ_SERVER) &&
$server_port == 443)) {
$proto = 'https://';
It's not as flexible as the original test but it works for me in the
interim.
HTH,
marc
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
squirrelmail-users mailing list
Posting Guidelines:
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users