Configuring General Properties for the Redirect Server
Use the following configuration statements to configure general properties for the redirect server:
redirect-server { destination-url destination-url; tcp-port tcp-port; refresh;}To configure properties for the redirect server:
- From configuration mode, access the configuration statement that configures the redirect server.
user@host#edit redirect-server
- Specify the URL to which to send subscriber traffic.
[edit redirect-server]user@host# set destination-url destination-url- (Optional) Specify the TCP port on which the redirect server listens for requests.
[edit redirect-server]user@host# set tcp-port tcp-port- (Optional) Specify whether the redirect server sends an HTTP 200 OK response with an HTML document that includes the <HTTP-Equiv="Refresh"> header to a subscriber's browser in response to a captured request.
[edit redirect-server]user@host#set refresh
If you do not use the
refresh
option, the redirect server sends an HTTP 302 Found response to a subscriber's browser in response to a captured request.By setting the refresh option, the load on the Web server is decreased because non-browser (or non-HTML) client applications that use HTTP do not follow this refresh message; however, most client applications do follow HTTP 302 messages.