HP WebQoS Peak for HP-UX Concepts and Operation Guide

Chapter 5 49
HP WebQoS Peak for the Apache Web Server
Integrating HP WebQoS with the Apache Web Server
location should be protected by a password, to prevent unauthorized
access to the server’s statistics.
4. Restart the Apache server so that the changes will take effect. Before
restarting the server it is recommended that you read “Configuring
HP WebQoS for Apache” on page 50.
Scenario 2: The Apache server is not yet installed on
the system.
1. Download and unpack the Apache distribution archive.
2. Create the directory hpac in
apache_dist
/src/modules, then find the
file mod_hpac.so for your HP-UX release and Apache version in
/opt/hpac-apache/lib. Copy this file to:
apache_dist
/src/modules/hpac.
3. Edit the file
apache_dist
/src/Configuration.tmpl and add the
following line at the end of the file:
AddModule modules/hpac/mod_hpac.o
4. Follow the instructions for building and installing the Apache server,
as described in the Apache documentation (for example, run config,
make, and make install). In particular, make sure that you enable
the hpac module as a shared module. For example, run config with
the options:
--enable-module=hpac
--enable-shared=hpac
5. Edit the configuration file
apache_home
/etc/httpd.conf or
apache_home
/etc/srm.conf. (These files are in
apache_home
/conf/, if you used the older installation layout.) Add
the following line:
Alias /hpac/ /opt/hpac-apache/html/
NOTE If you prefer, you can add this line to the srm.conf file. The /hpac/
location should be protected by a password, to prevent unauthorized
access to the server’s statistics.