iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)
Managing the iTP Secure WebServer Using Scripts
iTP Secure WebServer System Administrator’s Guide—523346-002
6-6
Description
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
•
Any Parallel Library TCP/IP configuration.
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 been changed in the configuration file, the iTP Secure
WebServer ignores the change and opens new files using the old names.
•
When you use -rollover with -start, the log files that were in use when the
iTP Secure WebServer was stopped are saved on startup, and the httpd process
begins logging to new files. If the log file names have been changed in the
configuration file, the server opens new files using the new names.
•
When you use -rollover with -restart, the current log files are saved when
the iTP Secure WebServer is stopped, and the httpd process begins logging to
new files when it is started again. If the log file names have been changed in the
configuration file, the server opens new files using the new names.
•
When you use -rollover with -restarth, the current log files are saved, and
the httpd process begins logging to new files. If the log file names have been
changed in the configuration file, the server opens new files using the new names.