HP Serviceguard Linux Contributed Toolkit Suite A.04.02.01 User Guide (696979-001, June 2012)

Table 2 Files for creating modular packages
Available in directoryDescriptionFile name
Red Hat: ${SGCONF}/modules/
tkit/apache
This is an attribute definition file, used
to generate a package ASCII template
in modular style of packaging.
apache.1
Red Hat: ${SGCONF}/scripts/
tkit/apache
This is the module script. This script is
called by the master control script and
acts as an interface between the
tkit_module.sh
tkit_module.sh master control
script and the toolkit interface script
(toolkit.sh). It is also responsible
for calling the toolkit configuration file
generator script.
NOTE: This file is used only for
creating modular packages.
Red Hat: ${SGCONF}/scripts/
tkit/apache
This is the toolkit configuration file
generator script. This script is called
by the module script when the
tkit_gen.sh
package configuration is applied
using cmapplyconf to generate the
user configuration file in the package
directory, TKIT_DIR.
NOTE: This file is used only for
creating modular packages.
Setting up the Apache server in SG/LX environment
Before creating and configuring Serviceguard packages, you must complete the following
configurations for the Apache web server application on all package nodes:
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
Setting up the Apache server in SG/LX environment 9