Installation guide
Section 7.1:Setting Up an Apache Service 125
• If the script directory resides in a non-standard location, specify the directory that will contain
the CGI programs. For example:
ScriptAlias /cgi-bin/ "/mnt/apacheservice/cgi-bin/"
• Specify the path that was used in the previous step, and set the access permissions to default
to that directory. For example:
<Directory mnt/apacheservice/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Additional changes may need to be made in order to tune Apache or add third-party module
functionality,. For information on setting up other options, refer to the Apache project docu-
mentation on the Apache Web site, http://httpd.apache.org/docs-project/.
2. The standard Apache start script, /etc/rc.d/init.d/httpd will also be used within the
cluster framework to start and stop the Apache server on the active cluster member. Accordingly,
when configuring the service, specify that script when prompted for the
User script.
Note
Depending on the release version, the default Apache service script
/etc/rc.d/init.d/httpd may not correctly return the status
of the httpd daemons in response to service httpd status
commands. This precludes correct operation of the cluster’s monitoring
of this service (if optionally designating a monitoring interval when
configuring the service). The status clause of this script may appear as
follows:
status)
status $httpd
;;
If this is the case, in order to make service monitoring of Apache work
properly, add an additional line as follows to the status clause:
status)
status $httpd
RETVAL=$?
;;