41
Chapter 5
Reverse Proxy and HTTP Redirects
3. Edit the following variables:
4. Save and close the
records.config
file.
5. Run the following command to apply the configuration changes
traffic_line -x
Modifying FTP Options
After you have set FTP mapping rules and have enabled FTP reverse proxy, Traffic Server can serve FTP
requests in reverse proxy mode. Traffic Server uses the default FTP options, such as the data connection mode
and connection timeouts, specified in the
records.config
file. You can modify the default FTP options to
better suit your needs.
To modify FTP options:
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 Traffic Server’s
config
directory with Vi.
3. Go to the
FTP Engine
section of the file.
4. Edit the following variables:
Variable
Description
proxy.config.ftp.ftp_enabled
Set this variable to 1 to enable FTP on your Traffic Server. This
variable must be enabled for Traffic Server to process FTP
requests.
proxy.config.ftp.reverse_ftp_enabled
Set this variable to 1 to enable the FTP reverse proxy option.
Set this variable to 0 (zero) to disable the FTP reverse proxy
option.
NOTE: If this variable is set to 0, but the
proxy.config.ftp.ftp_enabled variable (described above) is set to 1,
Traffic Server will serve FTP requests in forward proxy mode.
Variable
Description
proxy.config.ftp.data_connection_mode
Set this variable to specify the FTP connection mode:
1 = PASV then PORT
2 = PORT only
3 = PASV only
proxy.config.ftp.control_connection_timeout
Set this variable to specify how long Traffic Server
waits for a response from the FTP server.
proxy.config.ftp.cache_enabled
Set this variable to 1 to enable FTP document caching
for requests sent from an FTP client. Traffic Server
will cache the FTP documents it serves.
Set this variable to 0 (zero) to disable FTP document
caching for requests sent from an FTP client. Traffic
Server always obtains the requested FTP document
from the FTP server and does not cache it.
proxy.config.ftp.logging_enabled
Set this variable to 1 to enable logging of FTP
transactions.
Set this variable to 0 (zero) to disable logging of FTP
transactions.