43
Chapter 5
Reverse Proxy and HTTP Redirects
5. Save and close the
records.config
file.
6. Run the following command to apply the configuration changes.
traffic_line -x
Redirecting HTTP Requests
You can configure Traffic Server to redirect HTTP requests without having to contact any origin servers. For
example, if you redirect all requests for
http://www.ultraseek.com to http://www.hp.com/
products/portal/search/
, all HTTP requests for
www.ultraseek.com
go directly to
www.hp.com/
products/portal/search.
You can configure Traffic Server to perform permanent or temporary redirects. Permanent redirects notify the
browser of the URL change (by returning an HTTP status code 307) so that the browser can update bookmarks.
Temporary redirects notify the browser of the URL change for the current request only (by returning an HTTP
status code 301).
proxy.config.ftp.port_accept_timeout
Set this variable to specify the timeout value for a
listening data port in traffic server (for PORT, for the
FTP server data connection)
proxy.config.ftp.share_ftp_server_ctrl_enabled
Set this variable to 1 to enable sharing of server
control connections among multiple anonymous FTP
clients.
Set this variable to 0 (zero) to disable sharing of
server control connections among multiple
anonymous FTP clients.
proxy.config.ftp.server_ctrl_keep_alive_no_
activity_timeout
Set this variable to specify the timeout value when the
FTP server control connection is not used by any FTP
clients.
proxy.config.ftp.login_info_fresh_in_cache_time
Set this variable to specify how long the 220/230
responses (login messages) can stay fresh in the
cache.
proxy.config.ftp.directory_listing_fresh_in_
cache_time
Set this variable to specify how long directory listings
can stay fresh in the cache.
proxy.config.ftp.file_fresh_in_cache_time
Set this variable to specify how long FTP files can
stay fresh in the cache.
proxy.config.ftp.simple_directory_listing_
cache_enabled
Set this variable to 1 to enable caching of directory
listings without arguments (for example,
dir/ls
).
Set this variable to 0 (zero) to disable caching of
directory listings without arguments (for example,
dir/ls
).
proxy.config.ftp.full_directory_listing_cache
_enabled
Set this variable to 1 to enable caching of directory
listings with arguments (for example,
ls -al, ls *.txt)
.
Set this variable to 0 (zero) to disable caching of
directory listings with arguments (for example,
ls -al, ls *.txt
).
Variable
Description