Thank you Jon for answering ...
Your hint helped me find the environment variable HTTPS
that I set with the setenv instruction on Apache ... works fine.

Jon Nelson wrote:
> I have similar setup/behavior with apache 1.3.27-2.  I believe the correct
> way to set it up with Squirrelmail is with the Secure Login plugin:
> 
> http://www.squirrelmail.org/plugin_view.php?id=61
> 
> Jon

I have to admit that I did not try the plugin :-(

Instead I spotted where things go wrong.

functions/strings.php line 203-210

It seems that Apache says the request came in on port 80 !!!
When I set the environment variable HTTPS to "on" Squirrelmail
fails completely since
    https:/my.webmail.home:80/<what_ever/
does not work on my server.

If I do not set HTTPS squirrelmail assumes http:// protocol
that leads to leaving SSL (nag) reentering SSL (nag) due to
my redirect match statement.

I hacked it manualy by changing the statement to:
    if (! strstr($host, ':')) {
        if (sqgetGlobalVar('SERVER_PORT', $server_port, SQ_SERVER)) {
            if (!(($server_port == 80 || $server_port == 443) &&
                  ($proto == 'http://' || $proto == 'https://'))) {
                $port = sprintf(':%d', $server_port);
            }
        }
    }


By the way there is already a hack at the same place:
functions/strings.php line 216-218
   if ($imap_server_type == 'macosx' && $port == ':16080') {
        $port = '';
   }

I guess the reason is the same.

Do we have to specify the protocol and port on a redirect?
Does anyone know why the PHP parameter 
$_SERVER["SERVER_PORT"] seems to be wrong ???

Has this to to with some request envelope that is not adapted
in a redirect?

I am puzzled :-/

Kind regards,
claus




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
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