iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)

Managing the iTP Secure WebServer Using Scripts
iTP Secure WebServer System Administrators Guide522659-001
6-5
Description
-restart
stops and restarts the httpd server with the configuration specified by
config-filename, then restarts it.
-restarth
dynamically reconfigures the httpd server with the configuration specified by
config-filename. This argument does not stop the server. Cannot be used with
Parallel Library TCP/IP configurations.
-rollover
causes the current log files to be saved and the iTP Secure WebServer to write to a
new log file. You can use this argument alone or with the -start, -stop,
-restart, and -restarth options.
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, as follows:
#!/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, 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 the
following 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