Hi Haproxy Team,

We are using haproxy 1.5.4 on centos 6.8 release and facing issue while setting 
http response header using 'rspadd' / 'http-response set-header' keywords for 
haproxy stats url.
For other Url's we are able to modify request and response header.


Our aim is to modify Cache-Control with no-store, no-cache, private and add 
Strict-Transport-Security in haproxy stats response header. But after doing 
necessary changes response is not getting updated.
Here is configuration detail:

Url: 
https://<serverip>:<port>/haproxy?stats<https://%3cserverip%3e:%3cport%3e/haproxy?stats>

Configuration for haproxy stats (/etc/haproxy/haproxy.cfg) :

frontend stats_proxy

        bind <server ip>:<port>ssl crt <certificate path> no-sslv3 no-tlsv10 
ciphers <cipher>

        mode http
        default_backend stats_server
        rspadd Cache-Control:\ no-store,no-cache,private
        rspadd Pragma:\ no-cache
        rspadd Strict-Transport-Security:

backend stats_server
        mode http
        option httpclose
        option abortonclose
        stats enable
        stats refresh     60s
        stats hide-version

Response header:

[cid:[email protected]]

We are recently migrated to haproxy 1.5.4 from haproxy-1.5-dev23.3 release, not 
seen this issue on same.

Please let us know if there is any change in configuration from 
haproxy-1.5-dev23 to 1.5.4 build which we are missing or this is code issue.


[https://www.cisco.com/c/dam/m/en_us/signaturetool/images/banners/standard/01_standard_ciscoblue.png]




Suraj Bora
Dev
[email protected]<mailto:[email protected]>









[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif]

Think before you print.

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review, use, distribution or disclosure by others 
is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete 
all copies of this message.
Please click 
here<http://www.cisco.com/c/en/us/about/legal/terms-sale-software-license-agreement/company-registration-information.html>
 for Company Registration Information.






  • Unable to modify haprox... Suraj Bora -X (surbora - HCL AMERICA INC at Cisco)

Reply via email to