You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2018/03/29 16:35:57 UTC

[Bug 62233] New: Duplicate headers sent on forbidden page with mod_proxy

https://bz.apache.org/bugzilla/show_bug.cgi?id=62233

            Bug ID: 62233
           Summary: Duplicate headers sent on forbidden page with
                    mod_proxy
           Product: Apache httpd-2
           Version: 2.4.29
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_headers
          Assignee: bugs@httpd.apache.org
          Reporter: lhu5@cdc.gov
  Target Milestone: ---

Apache is being used as a reverse proxy. Normal requests only one header is
returned.. however when a 403 is returned I am getting duplicate headers.

Apache configuration similar to the following.

<VirtualHost *:443>
ServerName site-a.example.com
Header always set Strict-Transport-Security "max-age=31536000;
includeSubDomains"


On a normal request I only receive one header.. on a 403 I get the following:

curl.exe -I --head -k https://site-a.example.com/page/a

HTTP/1.1 403 Forbidden
Date: Thu, 29 Mar 2018 16:24:14 GMT
Server: Apache/2.4.29 (Win64) OpenSSL/1.1.0g
Strict-Transport-Security: max-age=31536000; includeSubDomains
Strict-Transport-Security: max-age=31536000; includeSubDomains
Connection: close
Content-Type: text/html; charset=iso-8859-1

I tried removing "always" to see if that would fix it but then I receive no
headers on the request. I then tried setifempty and still did not get a
header..

HTTP/1.1 403 Forbidden
Date: Thu, 29 Mar 2018 16:28:03 GMT
Server: Apache/2.4.29 (Win64) OpenSSL/1.1.0g
Connection: close
Content-Type: text/html; charset=iso-8859-1


in order to check that both headers were being duplicated by apache I modified
the header and both were changed.

For some reason it seems apache is appending the headers instead of overwriting
them.. 

Please let me know if you have any questions..

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62233] Duplicate headers sent on forbidden page with mod_proxy

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62233

Luca Toscano <to...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Luca Toscano <to...@gmail.com> ---


*** This bug has been marked as a duplicate of bug 62380 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62233] Duplicate headers sent on forbidden page with mod_proxy

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62233

--- Comment #2 from Luca Toscano <to...@gmail.com> ---
Gentle ping :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62233] Duplicate headers sent on forbidden page with mod_proxy

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62233

Luca Toscano <to...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Luca Toscano <to...@gmail.com> ---
Hi Jonathan,

I am not able to easily reproduce, can you give us more info about os used
(from curl.exe I guess Win?) and your full httpd.conf if possible?

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org