39
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
FTP Reverse Proxy
In FTP reverse proxy mode, Traffic Server receives FTP requests from FTP clients on behalf of an FTP server
(the FTP server’s hostname resolves to Traffic Server’s IP address).
Figure 5-2. illustrates how an FTP request from an FTP client is processed by Traffic Server running in FTP
reverse proxy mode.
Figure 5-2. Traffic Server processes an FTP request in FTP reverse proxy mode
Variable
Description
proxy.config.reverse_proxy.enabled
Set this variable to 1 to enable HTTP reverse proxy
mode.
Set this variable to 0 (zero) to disable HTTP reverse
proxy mode.
proxy.config.url_remap.pristine_host_hdr
Set this variable to 1 to retain the client host header in
the request.
Set this variable to 0 (zero) if you want Traffic Server
to translate the client host header.
proxy.config.url_remap.remap_required
Set this variable to 1 if you want Traffic Server to serve
requests only from the origin servers listed in the
mapping rules of the remap.config file.
Set this variable to 0 (zero) if you want Traffic Server
to serve requests from all origin servers.
proxy.config.header.parse.no_host_url_redirect
Enter the URL to which to redirect requests with no
host headers.
FTP server
An FTP client sends a request to an FTP Server via an FTP connection.
Because the FTP server's hostname resolves to Traffic Server's IP address,
Traffic Server receives the FTP request.
If the request is a cache miss or is stale, Traffic Server communicates with the
FTP Server via FTP and obtains the requested document. Traffic Server then
sends the document to the FTP client via an FTP connection and saves a copy
in its cache.
1
3
1
3
2
FTP request via FTP
FTP connection
FTP document served via FTP
If the request is a cache hit and the content is fresh, Traffic Server sends the
requested document to the FTP client via FTP.
Traffic
Server
FTP client
2