
40
Chapter 5
Reverse Proxy and HTTP Redirects
Configuring FTP Reverse Proxy
To use FTP reverse proxy, you must:
•
Set FTP mapping rules in the
ftp_remap.config
file. (Refer to
Setting FTP Mapping Rules‚ on
page 40
.)
•
Enable the FTP reverse proxy option. (Refer to
Enabling FTP Reverse Proxy‚ on page 40
.)
As an optional configuration step, you can modify FTP options (for example, you can change the FTP
connection mode and inactivity timeouts). (Refer to
Modifying FTP Options‚ on page 41
.)
Setting FTP Mapping Rules
You must set FTP mapping rules so that Traffic Server can direct any incoming FTP requests to the FTP server
if the requested document is a cache miss or is stale. You set FTP mapping rules in the
ftp_remap.config
file.
To set FTP mapping rules:
1. Telnet into the HP web cache appliance and select Shell Access as described in
Overview of Access
Methods‚ on page 7
.
2. Open the
ftp_remap.config
file located in the Traffic Server’s
config
directory with Vi.
3. Enter one mapping rule per line in the following format:
Traffic_Server_ipaddress:port
ftp_Server_ipaddress:port
where:
Traffic_Server_ipaddress
is the IP address assigned to Traffic Server and
ftp_Server_ipaddress
is the IP address assigned to the FTP server to which you want to redirect the
FTP requests.
4. Save and close the
ftp_remap.config
file.
5. Run the following command to apply the configuration changes.
traffic_line -x
Enabling FTP Reverse Proxy
You enable the FTP reverse proxy option by editing the
records.config
file. Follow the procedure below.
To enable FTP reverse proxy:
1. Telnet into the HP web cache appliance and select Shell Access as described in
Overview of Access
Methods‚ on page 7
.
2. Open the
records.config
file located in the Traffic Server’s
config
directory with Vi.
NOTE
Because FTP requests do not include host headers, Traffic Server cannot distinguish
between different FTP servers. Therefore, if you are working with multiple FTP
servers, you must have multiple IP addresses assigned to Traffic Server.