Installation guide
12-91
Device Manager Guide, Cisco ACE 4700 Series Application Control Engine Appliance
OL-26645-02
Chapter 12 Configuring Traffic Policies
Configuring Actions Lists
Configuring HTTP Header Insertion, Deletion, and Rewrite
Use this procedure to configure an HTTP header modify action list that inserts, rewrites, or deletes
HTTP headers.
Procedure
Step 1 Choose Config > Virtual Contexts > context > Expert > Action Lists > HTTP Header Modify
Action Lists.
The HTTP Header Modify Action List table appears.
Step 2 Do one of the following:
• To edit an existing action list, choose the action list and click the Edit icon. The Edit HTTP Header
Modify Action List window appears.
• To create a new action list, do the following:
a. Click the Add icon. The New HTTP Header Modify Action List window appears.
b. In the Action List Name field, enter a unique name for the HTTP header modify action list. Valid
entries are unquoted text strings with a maximum of 64 alphanumeric characters.
c. Click Deploy Now. The Edit HTTP Header Modify Action List window appears.
Step 3 (Optional) To rewrite the URL pathname in HTTP requests, do the following:
a. From the URL Expression field, enter the regular expression of the URL in the incoming request to
match.
b. From the Replace field, enter the replacement URL string.Enter an unquoted text string with no
spaces and a maximum of 255 alphanumeric characters. You can also use the following dynamic
replacement strings:
–
%is—Inserts the source IP address in the HTTP header
–
%id—Inserts the destination IP address in the HTTP header
–
%ps—Inserts the source port in the HTTP header
–
%pd—Inserts the destination port in the HTTP header
–
%u—Inserts the URL path string from the request
–
%h—Inserts the hostname from the request host header
Step 4 (Optional) Content Rewrite Response String provides the capability to rewrite configured regex patterns
in the HTTP response:
a. The HTTP Content Rewrite feature provides the capability on the ACE module to re-write
configured HTTP content in the HTTP response data.
b. The HTTP content ‘Rewrite response replace’ feature provides the capability on the ACE module
to replace configured HTTP content in the HTTP response data.
Step 5 Select the Header Action tab. The Header Action table appears.
Step 6 Click Add to add a new entry to the Header Action table. The Header Action configuration screen
appears. Enter the required information as shown in Table 12-35.