This feature is available on all units, however, access to this feature varies depending on your firmware version.
The WEBSITES > Traffic Management page allows you to define content rules that specify a pattern in the URL or header fields of the request. The Barracuda Web Application Firewall compares URLs and header fields of requests to the rules you define and applies the content rule policies to matching requests.
To create a content rule:
- For firmware version 7.6 and higher:
- From the BASIC > Services page in the Services section, identify the desired service.
- For firmware version before 7.6:
- From the WEBSITES > Traffic Management page in the Services section, identify the desired service.
- Click the Rule option next to the service. The Add Content Rule window appears.
- In the URL Match field, enter the URL of the requests you want to redirect to a different back-end server. Specify appropriate values for the other fields and click Add. See How to Add a Content Rule.
- Click the Server option next to the rule you just created. The Add Real Server window appears.
- In the IP Address field, enter the destination IP address where matching requests should be redirected. Specify appropriate values for the other fields and click Add. See How to Add a Real Server.
Example:
To redirect incoming requests for www.barracuda.com/xyz/
to server1 (192.168.1.1), you would create a content rule as follows:
- Rule Group Name – abc
- Host Match – www.barracuda.com
- URL Match – /xyz*
- Extended Match – * (or specify the condition under which the redirection should take place)
- Extended Match Sequence – 1000
Adding a Server:
- IP Address – 192.168.1.1
- Port – 80
- Status – In Service