Re: HTTP 401: Apache strips out response headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marco,

2017-01-10 12:57 GMT-08:00 Marco Pizzoli <marco.pizzoli@xxxxxxxxx>:
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

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux