Configuring Traffic Server
Traffic Server provides several options for configuring the system.
This chapter discusses the following topics:
Configure Traffic Server Using Traffic Line
Traffic Line enables you to quickly and easily change your Traffic Server configuration via command-line interface. Alternatively, you can also use Traffic Shell to configure Traffic Server.
To view or change configuration options in Traffic Line:
- Log on to a Traffic Server node as the Traffic Server administrator and navigate to the Traffic Server
- To view a configuration setting, enter the following command:
traffic_line -r var
varis the variable associated with the configuration option. For a list of variables, refer to Configuration Variables.
- To change the value of a configuration setting, enter the following command:
traffic_line -s var -v value
varis the variable associated with the configuration option and
valueis the value you want to use. For a list of the variables, see Configuration Variables.
If the Traffic Server
bindirectory is not in your path, then prepend the Traffic Line command with
./traffic_line -r variable).
Configure Traffic Server Using Configuration Files
As an alternative to using Traffic Line or Traffic Shell, you can change Traffic Server configuration options by manually editing specific variables in the
records.config file located in the Traffic Server
config directory. To edit the variables, open the file in a text editor (such as
emacs) and change variable values. After you modify the
records.config file, Traffic Server must reread the configuration files. From the Traffic Server
bin directory, enter the Traffic Line command
traffic_line -x. You may need to restart Traffic Server to apply the configuration changes.
The following is a sample portion of the
Sample records.config file
In addition to the
records.config file, Traffic Server provides other configuration files that are used to configure specific features. All configuration files you can manually edit are described in Configuration Files.