HP-UX Secure Resource Partitions (SRP) A.02.00 Administrator's Guide
Apache HTTPS port number
Specifies the TCP port number on which the compartment
Apache server will receive HTTPS (SSL) requests.
Variable Name: https_port.
Valid Input: A TCP port number in the range 1- 65535.
Default: 443, the IANA registered port number for HTTPS.
Start Apache at system
start time
Specifies if you want to add a script to the compartment
init directory structure to start Apache. The script is
automatically executed at system start time.
Variable Name: start_apache.
Valid Input: yes or no.
Default: yes.
Configuration Data
By default, the tasks executed by the /opt/hpsrp/bin/util/apache_setup script include:
• Creating bin, cgi-bin, conf, htdocs, and logs subdirectories below the compartment
Apache home directory.
• Creating a compartment-specific http.conf file with compartment-specific configuration
data, such as setting data paths to the appropriate directories below the compartment Apache
home directory and setting the Web Server address to the compartment IP address.
• Creating compartment-specific initialization scripts and startup file to start Apache with
the compartment-specific http.conf file when the compartment startup script is executed.
The setup script:
— Modifies the compartment-specific apachectl file in the bin subdirectory below the
data_path (by default, the path is
/var/hpsrp/compartment_name/opt/hpws/apache/bin/apachectl) to use
the compartment-specific Apache data path directory as the Apache ServerRoot.
— Creates the compartment-specific startup configuration file,
/var/hpsrp/compartment_name/etc/rc.config.d/hpws_apacheconf, which
specifies the compartment-specific Apache home directory.
— Adds the startup and shutdown script hpws_apache to the compartment-specific
init.d directory, /var/hpsrp/compartment_name/sbin/init.d. This file is
linked to the /var/hpsrp/compartment_name/sbin/rc3.d/S823hpws_apache
and /var/hpsrp/compartment_name/sbin/rc3.d/K177hpws_apache files.
Completing the Configuration
After you apply the apache cmpt service and the default apache provisioning script, you can
start the SRP compartment, and have a fully-functional HP-UX Apache-based Web Server in the
compartment. You can further customize the Web Server as needed by editing the
compartment-specific Apache configuration files
(/var/hpsrp/compartment_name/etc/rc.config.d/hpws_apacheconf and the
compartment-specific apachectl file, located in the bin subdirectory below the data_path).
Starting the SRP Compartment
To start the SRP compartment and the HP-UX Apache-based Web Server, use the srp -start
compartment_name command.
For more information about starting SRP compartments, see Chapter 10 (page 65).
50 Using the apache Template