table of contents
OCF_HEARTBEAT_APACHE(7) | OCF resource agents | OCF_HEARTBEAT_APACHE(7) |
NAME¶
ocf_heartbeat_apache - Manages an Apache Web server instance
SYNOPSIS¶
apache [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION¶
This is the resource agent for the Apache Web server. This resource agent operates both version 1.x and version 2.x Apache servers.
The start operation ends with a loop in which monitor is repeatedly called to make sure that the server started and that it is operational. Hence, if the monitor operation does not succeed within the start operation timeout, the apache resource will end with an error status.
The monitor operation by default loads the server status page which depends on the mod_status module and the corresponding configuration file (usually /etc/apache2/mod_status.conf). Make sure that the server status page works and that the access is allowed *only* from localhost (address 127.0.0.1). See the statusurl and testregex attributes for more details.
See also http://httpd.apache.org/
SUPPORTED PARAMETERS¶
configfile
(unique, optional, string, default "/etc/httpd/conf/httpd.conf")
httpd
(optional, string, default "/usr/sbin/httpd")
port
(optional, integer, no default)
statusurl
If you set this, make sure that it succeeds *only* from the localhost (127.0.0.1). Otherwise, it may happen that the cluster complains about the resource being active on multiple nodes.
(optional, string, no default)
testregex
(optional, string, default "exists, but impossible to show in a human readable format (try grep testregex)")
client
(optional, string, no default)
testurl
(optional, string, no default)
testregex10
(optional, string, no default)
testconffile
Please see README.webapps for examples and file description.
(optional, string, no default)
testname
(optional, string, no default)
options
(optional, string, no default)
envfiles
(optional, string, default "/etc/apache2/envvars")
use_ipv6
(optional, boolean, default false)
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations):
start
stop
status
monitor
meta-data
validate-all
EXAMPLE CRM SHELL¶
The following is an example configuration for a apache resource using the crm(8) shell:
primitive p_apache ocf:heartbeat:apache \
op monitor depth="0" timeout="20s" interval="10s"
EXAMPLE PCS¶
The following is an example configuration for a apache resource using pcs(8)
pcs resource create p_apache ocf:heartbeat:apache \
op monitor depth="0" timeout="20s" interval="10s"
SEE ALSO¶
AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)
03/19/2024 | resource-agents UNKNOWN |