[horde] Horde SSL issue

Nathan Mills nathan at nwacg.net
Mon Aug 6 04:34:03 UTC 2007


It turns out that it only happens when you log in using regular HTTP then 
switch to HTTPS by manually rewriting the URL in the location bar, at least 
in the version I'm using on this server.

I was very confused at first when I put in some logging to figure out what 
was going on and it suddenly worked on login. :p

What's happening is that somehow server_port is getting cached as 80, but 
the $browser->usingSSLconnection call is returning true. I'm betting that 
the config variables get cached when the session begins or something along 
those lines, so $_SERVER['SERVER_PORT'] never gets checked again.

-Nathan

--On Sunday, August 05, 2007 10:21 PM -0400 Chuck Hagenbuch 
<chuck at horde.org> wrote:

> Quoting Nathan Mills <nathan at nwacg.net>:
>
>> I'm having a problem using SSL with Horde (Groupware Webmail Edition 1.0
>> to be exact).
>>
>> I've configured my Apache server for SSL. For some reason, when trying to
>> access Horde over SSL the navigation frame loads OK, but the main frame
>> does not. Horde rewrites the url to
>> https://my.server:80/horde/login.php?frameset_loaded=1.
>>
>> Thanks to the spurious :80, the main frame does not load. Oddly, most of
>> the links in the navigation frame work fine (excluding the top level Mail
>> link, which has the proper URL in the link, but redirects to the broken
>> version with the spurious :80), so it's really only an issue of the
>> initial redirect.
>
> It'll also show up elsewhere that we generate full URLs.
>
> I'm not sure exactly why you're seeing this, but you need to take a
> look at the url() function in horde/lib/Horde.php. In the if ($full)
> check, you'll find the code; it seems that at some point in the
> process Horde is picking up a non-ssl port. If you can nail that then
> that should point at the fix.
>
> -chuck
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org






More information about the horde mailing list