
165
Appendix D
Configuration Files
The following table lists the possible actions and their allowed values.:
Example
The following rule configures Traffic Server to deny FTP document requests to the IP address 112.12.12.12.
dest_ip=112.12.12.12 scheme=ftp action=deny
The following rule configures Traffic Server to keep the client IP address header for URLs that contain the
regular expression
politics
and whose path prefix is
/viewpoint.
url_regex=politics prefix=/viewpoint keep_hdr=client_ip
The following rule configures Traffic Server to strip all cookies to the requested host
www.hp.com
.
dest_host=www.hp.com strip_hdr=cookie
The following rule configures Traffic Server not to allow
puts
to the requested host
www.hp.com
.
dest_host=www.hp.com method=put action=deny
Secondary Specifiers
Allowed Value
time
A time range, such as 08:00-14:00
src_ip
The IP address of the client
prefix
A prefix in the path part of a URL
suffix
A file suffix in the URL
port
A requested URL port
method
A request URL method; one of the following:
•
get
•
post
•
put
•
trace
scheme
A request URL protocol; one of the following:
•
HTTP
•
FTP
Action
Value
action
allow
deny
PUSH - If the PUSH option is enabled (the PUSH option lets you deliver
content directly to the cache without user request), you must add a filtering
rule with the PUSH action to ensure that only known source IP addresses
implement PUSH requests to the cache. See the example below.
You enable the PUSH option by setting the configuration variable
proxy.config.http.push_method_enabled
to 1 in the
records.config
file.
keep_hdr
Enter the client request header information that you want to keep:
•
date
•
host
•
cookie
•
client_ip
strip_hdr
Enter the client request header information that you want to strip. You have
the same options as
keep_hdr
.