diff options
| author | Zuul <zuul@review.opendev.org> | 2023-08-30 16:08:15 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2023-08-30 16:08:15 +0000 |
| commit | c8625600a5245e464bc5ef012cb6e60fed14690a (patch) | |
| tree | feee1d8b965cf0af614251a6e216a454f376e833 /docker | |
| parent | 051049ea50c11fcda970dc4a70a0e6ae4abaa2e9 (diff) | |
| parent | daf9fdd3a6e96d417f19440d59452e3b271ec9d9 (diff) | |
| download | kolla-c8625600a5245e464bc5ef012cb6e60fed14690a.tar.gz kolla-c8625600a5245e464bc5ef012cb6e60fed14690a.zip | |
Merge "Add server-status handler to Rocky/Centos Apache conf"
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/base/httpd_setup.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/base/httpd_setup.sh b/docker/base/httpd_setup.sh index 5232f4ed1..eb3d6794e 100644 --- a/docker/base/httpd_setup.sh +++ b/docker/base/httpd_setup.sh @@ -17,6 +17,15 @@ if [[ "$(whoami)" == 'root' ]]; then rm -rf /var/run/apache2/* else rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd* + # NOTE(mmalchuk): This added to make Rocky/Centos similar to Ubuntu/Debian + # to provide /server-status handler for local monitoring of the Apache. + # The module already loaded in the /etc/httpd/conf.modules.d/00-base.conf. + cat << EOF >/etc/httpd/conf.modules.d/99-server-status.conf +<Location "/server-status"> + SetHandler server-status + Require local +</Location> +EOF fi # CentOS/Rocky have an issue with mod_ssl which produces an invalid Apache |
