I have found a solution that seems to work SecRule REQUEST_HEADERS:Host "example\.com$" "phase:1,setvar:tx.proxytarget=http://172.27.69.53/errors/generic.aspx,pass" SecRule REQUEST_HEADERS:Host "example2\.com$" "phase:1,setvar:tx.proxytarget=http://172.27.69.54/errors/generic.aspx,pass" SecRuleUpdateActionById 981176 "chain,proxy:%{tx.proxytarget}"
On Thu, Apr 12, 2012 at 12:09 PM, Ben WIlliams <benwilliams+ow...@joobworld.com> wrote: > My site updates the deny rule in > modsecurity_crs_49_inbound_blocking.conf with this > > SecRuleUpdateActionById 981176 > "chain,proxy:http://172.27.69.53/errors/generic.aspx" > > This works fine, but now I need to have a different action for each > virtual host. Placing the line above within the VirtualHost doesn't > change the deny action. > > Any suggestions on how to set a different action for each VirtualHost? > > Thanks > Ben _______________________________________________ Owasp-modsecurity-core-rule-set mailing list Owasp-modsecurity-core-rule-set@lists.owasp.org https://lists.owasp.org/mailman/listinfo/owasp-modsecurity-core-rule-set