
214
Appendix D
Configuration Files
The following example shows reverse-map rules:
map http://www.x.com/ http://server.hoster.com/x/
reverse_map http://server.hoster.com/x/ http://www.x.com/
These rules result in the following translations:
Redirect mapping rules
The following rule permanently redirects all HTTP requests for
www.hp
to
www.hp2.com
.
redirect http://www.hp.com http://www.hp2.com
The following rule temporarily redirects all HTTP requests for
www.hp
to
www.hp3.com
.
redirect_temporary http://www.hp.com http://www.hp2.com
snmpd.cnf
The
snmpd.cnf
file contains parameters that control user access to MIB information and trap destinations. It
is beyond the scope of this manual to describe all of the SNMP parameters and formats; only the major
parameters affecting access control and trap destination are discussed in this section.
Format
The
snmpd.cnf
file contains a list of configuration parameters. As with all other configuration files, lines
beginning with the
#
symbol are comments. Each configuration parameter is listed along with formatting
variables, as in the following example:
#Entry type: snmpNotifyEntry
#Format:
snmpNotifyName
(text)
#
snmpNotifyTag
(text)
(keyed on snmpTargetAddr table)
#
snmpNotifyType
(trap(1), inform(2))
#
snmpNotifyStorageType
(nonVolatile, permanent, readOnly)
#snmpNotifyEntry
31 Console trap nonVolatile
#snmpNotifyEntry
32 TrapSink trap nonVolatile
Client Request
Translated Request
http://www.x.com/Widgets
http://server.hoster.com/x/Widgets
Client Request
Origin server Header
Translated Header
http://www.x.com/Widgets
http://server.hoster.com/x/Widgets/
http://www.x.com/Widgets/
NOTE
When acting as a reverse proxy for multiple servers, the Traffic Server is unable to route
to URLs from older browsers that do not send the
Host:
header. As a solution, set the
Redirect requests without host header to URL option in the Mapping/Redirection
section of the Routing page of Traffic Manager to a page that explains the situation to
the user and advises a browser upgrade or provides a link directly to the origin server,
bypassing the Traffic Server.
IMPORTANT
After you modify the
snmpd.cnf
file, Traffic Manager has to reread the configuration
files. Run the
traffic_line -x
command. If you are running a cluster, you need only
run the command for one node; the changes will propagate.