https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43847

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |In Discussion

--- Comment #3 from David Cook <[email protected]> ---
(In reply to Cornelius Hertfelder from comment #0)
> Anubis (port 443)
>     RequestHeader set X-Forwarded-Proto "https"
>     RequestHeader set X-Forwarded-Port "443"
>     RequestHeader set X-Forwarded-Host expr=%{HTTP_HOST}
>     RequestHeader set X-Forwarded-For expr=%{REMOTE_ADDR}
>     RequestHeader set X-Real-Ip expr=%{REMOTE_ADDR}
> 
> 
> Koha (port 80)
>     RemoteIPHeader X-Forwarded-For
>     RemoteIPInternalProxy 127.0.0.1

> Now the behavior is as folows
> 1. Log in to backend
> 2. go to OPAC
> 3. not logged in in OPAC
> 4. Being immediatelly logged out of backend

> This is caused by the CGISESSID cookie not transfered in the initial request
> to Anubis / Koha. 

Sounds like an Anubis problem and not a Koha problem.

If your "Cookie" header isn't being proxied to Koha OPAC, then Koha OPAC is
going to send back a new "Set-Cookie" header, which will blitz your previous
Koha Staff cookie.

> A workaround is to disable the SessionRestrictionByIP. This leads us to the
> trusted proxies. Koha should trust the reverse proxies IP and then use the
> X-Forwarded-For header instead of REMOTE_ADDR. 

Unless you're seeing a different IP address in your Koha logs, I'd say this is
the wrong path. I'd focus on the Cookie header.

--

But yeah this is really outside the scope of Koha I'd say. 

I'll leave this as "In Discussion" but tempted to mark it RESOLVED INVALID, as
this is really more of a support request than a Koha bug report.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to