HP-UX Containers (SRP) A.03.01 Administrator's Guide
101
Service Description
• Creating a container-specific http.conf file with container-specific
configuration data, such as setting data paths to the appropriate directories
below the container Apache home directory and setting the IP address to the
container IP address. Enables the mod_ajp module for Apache Tomcat
integration.
• Creating container-specific initialization scripts and startup file to start
Apache with the container-specific http.conf file when the container
startup script is executed. The setup script:
o Modifies the container-specific apachectl file in the bin
subdirectory below the data_path (by default, the path is
/var/hpsrp/container_name/opt/hpws22/apache/bin/a
pachectl) to use the container-specific Apache data path directory
as the ServerRoot.
o Creates the container-specific startup configuration file,
/var/hpsrp/container_name/etc/rc.config.d/hpws22_
apacheconf, which specifies the container-specific Apache home
directory.
o Adds the startup and shutdown script hpws22_apache to the
container-specific init.d directory,
/var/hpsrp/container_name/sbin/init.d. This file is linked
to the
/var/hpsrp/container_name/sbin/rc3.d/S823hpws22_apache
and
/var/hpsrp/container_name/sbin/rc3.d/K177hpws22_apache
files.
Note on Completing the Configuration
After you apply the apache cmpt service and the default apache provisioning
script, you can start the container, and have a fully-functional HP-UX Apache-based
Web Server in the container. You can further customize the Web Server as needed
by editing the container-specific Apache configuration files
(
/var/hpsrp/container_name/etc/rc.config.d/hpws22_apacheconf and the
container-specific apachectl file, located in the bin subdirectory below the
data_path).
Table 16.7 Variables for the apache template
Service Variable Description
cmpt
wss_version
The HP-UX Web Server Suite version of Apache to be used to
configure the template
Default:
3.0
.
data_path
The root directory for Apache data. The cmpt service adds rules
to allow the container all access to this directory. Users and
processes in the container can read, write, traverse (nsearch),
and delete (ulink) the contents of these directories.
Default:
/var/hpsrp/
container_name
/opt/hpws22/apache
.
exec_path
The root directory for Apache executables. The cmpt service
adds rules to allow the container read access to this directory.
Default:
/opt/hpws22/apache
.
ipfilter
http_port
Specifies the TCP port number on which the container Apache
server will receive HTTP requests.