To Set Redirect Rules - 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

Chapter 5

To set redirect rules:

1. Telnet into the HP web cache appliance and select Shell Access as described in
Methods‚ on page
2. Open the
remap.config
3. For each redirect , enter a mapping rule. Each mapping rule must be on a separate line and must consist of
three space-delimited fields:
for each field.
Field
type
target
replacement
The following example permanently redirects all HTTP requests for
redirect http://www.hp.com http://www.hp2.com
4. Save and close the
5. Run the following command to apply the configuration changes.
traffic_line -x
7.
file located in Traffic Server's
,
, and
type
target
Description
Enter either one of the following:
—redirects HTTP requests permanently without having to contact
redirect
the origin server
redirect_temporary
to contact the origin server.
Enter the origin or from URL. You can enter up to four components:
://
:
scheme
host
port
Enter the destination or to URL. You can enter up to four components:
://
:
scheme
host
port
file.
remap.config
Reverse Proxy and HTTP Redirects
directory with Vi.
config
. The following table describes the format
replacement
—redirects HTTP requests temporarily without having
/
path_prefix
/
path_prefix
www.hp
Overview of Access
to
www.hp2.com.
44

Advertisement

Table of Contents
loading

This manual is also suitable for:

P4535a

Table of Contents