OCF_HEARTBEAT_APACHE(7) | OCF resource agents | OCF_HEARTBEAT_APACHE(7) |
ocf_heartbeat_apache - Manages an Apache Web server instance
apache [start | stop | status | monitor | meta-data | validate-all]
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/
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)
This resource agent supports the following actions (operations):
start
stop
status
monitor
meta-data
validate-all
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"
The following is an example configuration for a apache resource using pcs(8)
pcs resource create p_apache ocf:heartbeat:apache \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
04/13/2023 | resource-agents 4.12.0-2 |