Example; Filter.config; Format - HP P4535A - Web Cache Server Appliance Administrator's Manual

Hp cache server appliance administrator guide
Hide thumbs Also See for P4535A - Web Cache Server Appliance:
Table of Contents

Advertisement

Appendix D

Example

The following rule configures Traffic Server to never cache FTP documents requested from the IP address
112.12.12.12.
dest_ip=112.12.12.12 scheme=ftp action=never-cache
The following rule configures Traffic Server to keep documents with URLs that contain the regular expression
and with the path prefix
politics
url_regex=politics prefix=/viewpoint pin-in-cache=12h
The following rules configures Traffic Server to revalidate
6 hours and all other objects in
NOTE
dest_domain=hp.com suffix=gif revalidate=6h
dest_domain=hp.com suffix=jpeg revalidate=6h
dest_domain=hp.com revalidate=6h

filter.config

The
filter.config
Allowing a URL request means that the Traffic Server will cache and serve the requested document. When a
request is denied, the client receives an
IMPORTANT

Format

Each line in the
filter.config
tags:
primary destination=value secondary specifier=value action=value
NOTE
The following table lists the possible primary destinations and their allowed values:
Primary Destination
dest_domain
dest_host
dest_ip
url_regex
The secondary specifiers are optional in the
The following table lists the possible secondary specifiers and their allowed values.
/viewpoint
every hour.
hp.com
The rules are applied in the order listed.
file lets you deny or allow particular URL requests and keep or strip header information.
access denied
After you modify the
filter.config
configuration files. Run the
you need only run the command for one node; the changes will propagate.
file contains a filtering rule. Traffic Server recognizes three space-delimited
You can use more than one secondary specifier in a rule. However, you cannot repeat a
secondary specifier.
Allowed Value
Requested domain name
Requested hostname
Requested IP address
Regular expression to be found in a URL
filter.config
in the cache for 12 hours.
and
objects in the domain
gif
jpeg
message.
file, Traffic Manager has to reread the
command. If you are running a cluster,
traffic_line -x
file in the Traffic Server's
Configuration Files
every
hp.com
directory.
config
164

Advertisement

Table of Contents
loading

This manual is also suitable for:

P4535a

Table of Contents