Search Imperva Community for
Hi Malith,This can be accomplished using forward and rewrite rules.Define srilankan.airtrfx.com as a Data Center and check the box to Support only forward rules.Create a new Forward rule with the following filter criteria: URL == "/flights"Adjust the match criteria as desired. For example, the statement above is a strict match on "/flights" and will not match "/flights/".For the Rule Action, select Forward to Data Center and select the srilankan.airtrfx.com Data Center.Give the rule a name and click Save.Imperva Cloud will now Forward all requests for www.srilankan.com/flights (client facing) to srilankan.airtrfx.com. (backend) and retrieve the content.Please note however that a Rewrite rule is also typically required in conjunction with a Forward rule. This is because the Origin Data Center usually won't respond because the original Host header is sent. Additionally, the SSL handshake can fail with the Origin server if the Host names do not match.Create a Rewrite matching the same path as the Forward rule. URL == "/flights"For the Rule Action, select Rewrite Header.For the Header Name, enter HostLeave the From empty and in the To enter srilankan.airtrfx.comEnter a name for the rule and click Save.
or Contact Us
Copyright @ 2019 Imperva. All rights reserved