
Chapter 4: Configuring the High-Level Network
4-40
Table 4.8 shows some sample redirection specifications, their explanations,
and their resulting redirection.
Table 4.8 Sample HTTP redirections using format strings
The example in Figure 4.8 shows a pool configured to redirect an HTTP
request to a different protocol (https) host name (1.2.3.4), port number
(443), and path (unavailable.html).
Redirection string Explanation Resulting redirection
%h:%p/%u No redirection
(preserve host name,
port, and path)
http://www/example.com:8080/sample
%h/unavailable change path, remove
port
http://www/example.com/unavailable
https://%h/unavailable Specify https as
protocol, remove port,
change path
https://www/example.com/unavailable
www.sample.com:8080/%u Change host name
and port, preserve
path
http://www.sample.com:8080/sample
https://1.2.3.4:443/%u/unavilable.html Specify https as
protocol, change host
name, port, and path
https://1.2.3.4:443/sample/unavailable.html
ftp://1.2.3.4:%p/unavailable/%u Specify ftp as protocol,
change host name and
path
ftp://1.2.3.4:8080/unavailable/sample
rtsp://%h:554/streamingmedia/%u Specify rtsp as
protocol, change port
and path
rtsp://www.example.com:554/streamingmedia
/sample
pool my_pool {
member 10.12.10.1:80
member 10.12.10.2:80
member 10.12.10.3:80
https://1.2.3.4:443/%u/unavailable.html
}
Figure 4.8 HTTP redirection specified in a pool
Comentarios a estos manuales