HP Traffic Director sa7220 User Manual
Page 309

A P P E N D I X D
Configuring OPR for Apache Web Server on a UNIX* machine
297
Configuring OPR for Apache Web Server on a
UNIX* machine
This section reproduces the commands required to configure Out-of-
Path Return for an Apache Web Server on a UNIX* machine.
ifconfig lo0 add
or
ifconfig lo0
or
ifconfig lo0:1
1. Add the appropriate command to an
/etc/rc
file to return this
configuration at boot time.
2. Edit the httpd.conf to reflect these settings (these are usually
found under
/var/www/conf/
):
Port
ServerName server machine> 3. Configure a virtual service (in the same file, vip is the virtual IP configured on the SA8220 to handle OPR): ServerName vip ServerAdmin admin@mailserver DocumentRoot ( usually: /var/www/docs) ErrorLog /var/log/httpd/vip-error_log TransferLog /var/log/httpd/vip-access_log # CustomLog /var/log/httpd/vip-access_log combined 4. Edit the /var/www/conf/srm.conf and set document root to /var/www/docs . For the Apache server to start at boot time, the index.html file must exist. Therefore, in /etc/rc verify the following entry: if [ -f /var/www/docs/index.html ]; then echo -n ’ httpd’; /var/www/bin/start-apache fi