Configuring Rules for the Format Request Filter

Configuring Request Filtering 4-17 When results are expected, then disable Monitor Only to enforce the rule. See Section 4.4 for further information about the Monitor Only option.

e. Click Apply to save the rule settings.

8. Click the Request Filters Summary breadcrumb at the top of the page, or from the

Web Cache menu, select Administration and then Request Filters to navigate back to the Request Filters Summary page.

9. In the Format row, click Enable to enable the filter.

If you do not click Enable, Oracle Web Cache ignores any configured filter rules for this filter.

10. Click Apply to save the configuration for the request filter.

4.12 Deleting Rules for a Request Filter

To delete a rule for a request filter: 1. Navigate to the Web Cache Home page in Fusion Middleware Control. See Section 2.6.2 .

2. From the Web Cache menu, select Administration and then Request Filters.

The Request Filters Summary page displays. 3. Click the filter you want to modify.

4. From the Site list, select the site.

5. Select a rule in the table and click the Delete icon.

6. Repeat Step 5 for each additional rule you want to remove.

7. Click Apply to save the configuration for the request filter.

4.13 Monitoring Statistics for Request Filter Types and Rules

Fusion Middleware Control provides statistics for assessing the effectiveness of configured request filters and rules. By analyzing the rules, you can determine if you prioritized the rules incorrectly. For example, if the you notice a deny rule is matched but configured allow rules are never matched, then prioritize the allow rules first. If you make changes to the configuration settings for Oracle Web Cache, Oracle Web Cache disables the request-filter statistics and labels them as NA. To view request-filter statistics: 1. Navigate to the Web Cache Home page in Fusion Middleware Control. See Section 2.6.2 .

2. From the Web Cache menu, select Administration and then Request Filters.

The Request Filters Summary page displays.

3. Scroll to the far right, to view the Request Statistics and Post Allow Statistics.

The Request Statistics display the run time statistics for tracking how the configured request filters handle the incoming requests: ■ Matched Catch All: Displays the number of requests that matched the Catch All rules. ■ Matched Others: Displays the number of requests that matched the rules that were not Catch All requests. 4-18 Oracle Fusion Middleware Administrators Guide for Oracle Web Cache ■ Matched Denied: Displays the number of requests that matched the rule and were denied by Oracle Web Cache. If there are few requests matching the filter, then consider changing the rules for the filter to improve its effectiveness. The Post Allow Statistics display the statistics for allowed requests: ■ Succeeded: Displays the number of requests that were allowed and succeeded. ■ Denied Later: Displays the number of requests that were allowed, but subsequently denied by another filter. ■ Failed: Displays the number of requests that were allowed, but the request failed with an error. 4. To gather more information for a particular filter, click the filter to view the individual rules and accompanying statistics.

4.14 Reducing Time to Configure Request Filters

This section covers the following configuration tasks for easing configuration work. These features are only available in Oracle Web Cache Manager. ■ Section 4.14.1, Copying Rules from a Source Site to a Target Site ■ Section 4.14.2, Reverting Configuration Settings

4.14.1 Copying Rules from a Source Site to a Target Site

You can reduce the time spent configuring filters and associated rules by completing the configuration for one site and applying the configuration to other sites. You can copy the complete configuration for all filters, or you can copy the configuration for the rules for a specific filter. To copy the complete configuration for all the filters from a source site to a target site:

1. Configure settings for the various filters, as described in

Section 4.5 to Section 4.11 .

2. From Oracle Web Cache Manager, in the navigator frame, select Filtering

Request Filters . See Section 2.7.2 . The Request Filters Summary page displays.

3. From the For Site list, select the source site with the complete configuration you

want to copy.

4. Click Copy All Filters toward the bottom of the page.

5. In the Copy All Request Filter dialog, from the To Site list, select the target site to

apply the configuration settings, and then click Submit. 6. Click Apply Changes. To copy the rule configuration for a specific filter from a source site to a target site: 1. Configure settings for the various filters, as described in Section 4.5 to Section 4.11 .

2. From Oracle Web Cache Manager, in the navigator frame, select Filtering

Request Filters . See Section 2.7.2 . The Request Filters Summary page displays.

3. Select a specific filter from the Filter Type column.