Amol, On Sat, Oct 15, 2016 at 7:21 AM, Amol <mandm_z...@yahoo.com> wrote:
> Hi, > I am trying to configure my LB such that it can allow one of my websites > to render the pages behind this LB. > i am using Ubuntu 12.04 LTS > and > haproxy -v > HA-Proxy version 1.5.14 2015/07/02 > > ----config file entry -------- > rspadd X-Frame-Options:\ ALLOW-FROM if https://load.example.com > You are missing a condition here, try: rspadd X-Frame-Options:\ ALLOW-FROM if { req.hdr(Host) -i load.example.com } > > > but i get this error > > [ALERT] 287/161307 (22941) : parsing [/etc/haproxy/haproxy.cfg:83] : error > detected while parsing a 'rspadd' condition : no such ACL : ' > https://load.example.com/'. > [ALERT] 287/161307 (22941) : Error(s) found in configuration file : > /etc/haproxy/haproxy.cfg > [ALERT] 287/161307 (22941) : Fatal errors found in configuration. > <https://load.iformbuilder.com/> > > > > my prior setting was > ----config file entry -------- > rspadd X-Frame-Options:\ SAMEORIGIN > > and that blocked any site from rendering the pages behind this LB. But now > i want it to allow this one link to open the pages. > > Please let me know if anyone has tackled this before. > > -- Igor Cicimov | DevOps p. +61 (0) 433 078 728 e. ig...@encompasscorporation.com <http://encompasscorporation.com/> w*.* www.encompasscorporation.com a. Level 4, 65 York Street, Sydney 2000