This example shows how two versions of httpd
can run from different locations. In group Apache_1, httpd runs from Port 80, the default location. The configuration file in /usr/local/apache/conf/httpd.conf should indicate DocumentRoot, address, port, and other parameters. In group Apache_2, httpd runs from /home/web/apache. The PID file for this is created in /home/web/apache/logs/httpd.pid. The configuration file in /home/web/apache/conf/httpd.conf should define parameters for running this version of httpd.
Each Apache resource requires an online IP resource. In this example, each Apache resource requires an online mount resource to mount block devices from disks reserved by the Disk Reservation agent.
ServerRoot = "/usr/local/apache"
ConfigFile = "conf/httpd.conf"
NetworkHosts={"172.29.9.178","172.29.9.179"}
DiskReservation myapacheDiskRes(
myapacheMnt requires myapacheDiskRes
myapacheIP requires myapacheNIC
myapacheWeb requires myapacheIP
myapacheWeb requires myapacheMnt
ServerRoot = "/home/web/apache"
ConfigFile = "conf/httpd.conf"
DiskReservation myapacheDiskRes2(
myapacheMnt2 requires myapacheDiskRes2
myapacheIP2 requires myapacheNIC2
myapacheWeb2 requires myapacheIP2
myapacheWeb2 requires myapacheMnt2
UserNames = { admin = xxxxxx }
SystemList = { SystemA = 0, SystemB = 1 }
BlockDevice = "/dev/vx/dsk/web1/web1"
httpdDir = "/apache/srvr01/bin"
EnvFile = "/apache/srvr01/bin/envvars"
ConfigFile = "/apache/srvr01/conf/httpd.conf"