Hi Marco, 2017-01-10 12:57 GMT-08:00 Marco Pizzoli <marco.pizz...@gmail.com>:
> Hi all, > I am reverse proxying a backend which returns a http code 401. > I see Apache is stripping out all the http headers returned by the backend > along with the 401 and this is causing trouble to the client application. > > Is there a way to get the original http headers to the client? > > I can't find any documentation about this. Not even a reference to the > fact Apache is re-writing the answer, but I checked myself and now I am > sure of this behaviour.... > > Apache currently used for this setup is 2.2. Migration to 2.4 is planned > in the coming motnhs. > > I tried to reproduce the issue with 2.4.25 (mod_proxy_http connecting to a python webserver returning a 401 with custom headers) and I got the expected response without any header stripping. I'll try asap on 2.2 but in the meantime, can you tell us if you managed to reproduce the problem on a 2.4.x version of httpd? Moreover, if you have a simple script or way to reproduce your backend (returning 401) please share it with us so we'll be able to track down the issue quickly. Thanks! Luca