HP Traffic Director Server Appliances sa7200/sa7220 and 8200/sa8220 - User Guide

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 <vip> or
ifconfig lo0 <vip> alias or
ifconfig lo0:1 <vip>
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 <port_number>,
ServerName <the fully qualified name for this
server machine>
3. Configure a virtual service (in the same file, vip is the virtual IP
configured on the SA8220 to handle OPR):
<VirtualHost vip>
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
</VirtualHost>
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