cells icon indicating copy to clipboard operation
cells copied to clipboard

Rewrite Host header for proxied connections to Collabora

Open ryansun96 opened this issue 3 years ago • 1 comments

My understanding of how Pydio works with Collabora is that the user browser will make a request to pydio.mydomain.com/loleaflet/dist/loleaflet.html which will be proxied by Pydio to the actual Collabora service collabora.mydomain.com. However my load balancer / reverse proxy shows that proxied request still uses pydio.mydomain.com in Host header, which is problematic for virtual host based proxies.

Please rewrite the Host header to the actual Collabora host name configured.

ryansun96 avatar Dec 18 '21 19:12 ryansun96

hi @ryansun96 coming back on that one : do you mean that our proxy is sending a request where URI Host (http://collabora.mydomain.com/....) differs from Host in the headers? Which one is wrong? According to RFC2616:

If Request-URI is an absolute URI, the host is part of the Request-URI. Any Host header field value in the request MUST be ignored.

cdujeu avatar Apr 05 '22 15:04 cdujeu