iTP Secure WebServer System Administrators Guide (Version 7.5+)

configuration. A new serverclass with the modified configuration, and new
name is added to the PATHMON.
When distributor is present, you cannot use this option with httpd serverclass.
You cannot update distributor serverclass because it is configured by httpd.
You cannot update a manually added serverclass named distributor.
If gcache is added to the iTP Secure WebServer environment, perform the
following steps for caching to take effect:
Set GlobalCache to ON in the httpd.stl.config file.
Restart httpd serverclass.
Description
The httpd command controls the iTP Secure WebServer (httpd) process. You can use the
command to start, stop, and restart the httpd process with the configuration specified in
config-filename, and to cause the httpd process to begin logging to new files. The httpd
object file is located in the /usr/tandem/webserver/bin directory. The default httpd.config
file is located in /usr/tandem/webserver/conf.
You can start multiple httpd servers by using the -start argument with unique
config-filename:
#!/bin/ksh
root=${1:-/usr/tandem/webserver}
server1=${2:-httpd1.config}
server2=${2:-httpd2.config}
$root/bin/httpd -start $root/conf/$server1
$root/bin/httpd -start $root/conf/$server2
You can dynamically change the configuration of an iTP Secure WebServer by modifying the
configuration file for the server you want to change, and then using the httpd command with the
-restarth argument The -restarth argument causes the server to reread the directives in the
configuration file without stopping. The configuration file specified must be one that is already in
use. The following example would dynamically reconfigure the server described in the file
httpd3.config:
#!/bin/ksh
root=${1:-/usr/tandem/webserver}
server3=${2:-httpd3.config}
$root/bin/httpd -restarth $root/conf/$server3
The -restarth argument applies configuration changes only to the Distributor process, the httpd
process, and the Servlet Server Class (SSC). Do not specify changes to the PATHMON configuration.
The -restarth argument does not apply these kinds of changes:
The arguments to other server classes such as generic-cgi.pway
The addition of new server classes or the deletion of existing ones
The httpd process is configured to run in Auto-Accept mode.
The -rollover argument causes the httpd process to save the files that it is logging to and to log
to new, empty files. Using -rollover eliminates the need to manually rename log files when you
want to archive them and start new ones. The -rollover argument saves the current log files
using the names specified in the AccessLog, ErrorLog, and ExtendedLog directives, but appends
a timestamp to the name.
When you use -rollover as the only argument to the httpd command, the current log
files are saved and the httpd process begins logging to new files. If the log file names have
Using the httpd Command 87