[Mapbender-users] set logout_location for gui

Christoph Baudson christoph.baudson at wheregroup.com
Tue Aug 5 04:00:09 EDT 2008


Marco, thanks for supplying the patch.

I've committed it to the 2.5 branch and will merge it to trunk later on.

I already had created a ticket for the "login" part, where I also 
applied the changes you sent.

see http://trac.osgeo.org/mapbender/ticket/121

Thanks

Christoph


Marco Lechner schrieb:
> Hi Michael,
>
> go for the long story:
> my mapbender installation is running on an alternative port (8081) for 
> https, because it's a virtual host on a machine already using the 
> standard 443-https vor it's own https. Because I want a separate 
> ssl-certificate for my host running the mapbender-Installation (and of 
> course I'm using ssl for it) I used RewriteRule in apache to put the 
> virtual host on https://www.host.com:8081. The problem is, that the 
> logout script (mod_logout.php) doesn't take care of the "https" and 
> therefore changes the URL to http://www.host.com:8081 which gives a 
> Bad Request page like when you try e.g. 
> http://www.geographie.uni-freiburg.de:443
> One solution is to tell mapbender the https://host.com:8081 as 
> definite logout_location (which I still can't find in the GUI (where 
> for *!~%! can these f... gui_env_vars be set?).

We should really make this clearer in a future version.

> The IMHO better solution (isn't mapbender running most of the time in 
> a https-mode?) is the little diff I attached which adds an if-clause 
> to mod_logout.php to evaluate $_SERVER['HTTPS'].
> If this is o.k. someone with write-access could add it to the SVN.
>
> Marco
>
> P.S. yeah, found it also in the GUI! I told you - one of those days. 
> Well, i still like my diff-solution better ;-)
>
> Michael Schulz schrieb:
>> Hi Marco,
>>
>> setting this gui element var should work definitely through the
>> admin_guis. What happens? Is the login screen displayed? Did you check
>> the mb error log?
>> I just tested it, with success. Did you specify a complete url?
>>
>> Cheers, Michael
>>
>>
>> Am 4. August 2008 18:12 schrieb Marco Lechner
>> <marco.lechner at geographie.uni-freiburg.de>:
>>> Hi mapbenders,
>>>
>>> I try to set the logout_location (gui_element_vars) for one of my 
>>> guis. Do I
>>> have to edit the value in postgresql itself or is the setting of this
>>> variable implemented in the mapbender-GUI. Well, I searched for it, 
>>> but may
>>> me today is one of my "blind days".
>>>
>>> Marco
>>>
>>> P.S. mapbender 2.5.0 RC5 (11-07-2008)
>>>
>>> _______________________________________________
>>> Mapbender_users mailing list
>>> Mapbender_users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>
>>>
>>
>>
>>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users


-- 
_______________________________________

W h e r e G r o u p GmbH & Co. KG

Siemensstraße 8
53121 Bonn
Germany

Christoph Baudson
Anwendungsentwickler

Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________

Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Arnulf Christl, Olaf Knopp, Peter Stamm
_______________________________________





More information about the Mapbender_users mailing list