HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)

1. When the Apache server is installed, the default Apache instance might be configured to
automatically startup during system startup via the runlevel (rc) scripts in the /etc/rc.d
directory. In such a case, disable the automatic startup of Apache.
2. Configure the Apache server.
For more information about configuring the Apache server, see Apache Web Server
documentation.
3. Create a separate, distinct server root directory and server configuration file for each Apache
SG/LX package.
This server root directory corresponds to the Apache ServerRoot directive specified in the
configuration file. Each package corresponds to a unique Apache instance with its associated
configuration and server root directory.
4. Configure all Apache instances to listen to package re-locatable IP addresses using Listen
directives.
For example, the configuration file for an Apache instance that combines IP-based and
name-based virtual hosts would include the following directive:
Listen aaa.bbb.c.d:ee
Listen aaa.bbb.c.d:ee
NameVirtualHost aaa.bbb.c.d:ee
<VirtualHost web.site1.url:80>
ServerName web.site1.url
DocumentRoot /shared/httpd/www-site1
</VirtualHost>
<VirtualHost web.site2.url:80>
ServerName web.site2.url
DocumentRoot /shared/httpd/www-site2
</VirtualHost>
For more information about configuring virtual hosts, see the Apache Web Server
documentation.
Supported configuration
This section explains the following supported configurations for Apache toolkit packages:
Local configuration
Shared configuration
Multiple instance configuration
Local configuration
In a typical local configuration, files are not shared among the nodes. Identical copies of the
Apache server configuration file and web documents reside in exactly the same locations on each
node. If you update the information in a file on one single node, you must update the files on all
the other nodes with the same changes. The administrator must ensure that all the files on all the
nodes are identical and always up-to-date. This local configuration setup is more useful in scenarios
where the information on the Web page is static and does not change very often.
Shared configuration
In a typical shared configuration, the document root directories reside on a shared file system. You
can place the server root directory in this shared file system. However, this is optional. By placing
the files and directories on a shared file system, the information automatically becomes accessible
to all the nodes in the cluster. You need not maintain copies of all the files and directories on every
10 Apache Toolkit