diff options
| author | Maksim Malchuk <maksim.malchuk@gmail.com> | 2023-08-09 17:34:32 +0300 |
|---|---|---|
| committer | Maksim Malchuk <maksim.malchuk@gmail.com> | 2023-08-22 13:02:46 +0000 |
| commit | daf9fdd3a6e96d417f19440d59452e3b271ec9d9 (patch) | |
| tree | 6df11034ced5bd3d4ac3d42c9da165196fd3db1a /docker | |
| parent | 999cabd6e01eea7ac09ce16f6b44ecd1b5150fa2 (diff) | |
| download | kolla-daf9fdd3a6e96d417f19440d59452e3b271ec9d9.tar.gz kolla-daf9fdd3a6e96d417f19440d59452e3b271ec9d9.zip | |
Add server-status handler to Rocky/Centos Apache conf
This added to make Rocky/Centos similar to Ubuntu/Debian
to provide /server-status handler for local monitoring of the Apache.
Since I3ec1af6353c3ecc64589599abe375b0ae9b14d5c is merged it safe
to add this change.
Change-Id: I14ba7e0319b7eb0390361d397d4baad0e9a3f0b1
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
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 |
