apache/nginx: add server status suffix in VHost if missing

This commit is contained in:
Jérémy Lecour 2019-04-25 17:12:13 +02:00 committed by Jérémy Lecour
parent 5dc84d42f3
commit 8e618ce70a
3 changed files with 16 additions and 0 deletions

View File

@ -11,6 +11,8 @@ The **patch** part changes incrementally at each release.
## [Unreleased]
### Added
* apache: add server status suffix in VHost if missing
* nginx: add server status suffix in VHost if missing
### Changed
* evocheck : version 19.04 from upstream

View File

@ -40,6 +40,13 @@
regexp: '__SERVERSTATUS_SUFFIX__'
replace: "{{ apache_serverstatus_suffix }}"
- name: add server-status suffix in default VHost
replace:
dest: /etc/apache2/sites-available/000-evolinux-default.conf
regexp: '<Location /server-status>'
replace: '<Location /server-status-{{ apache_serverstatus_suffix }}>'
notify: reload apache
- name: Munin configuration has a section for apache
lineinfile:
dest: /etc/munin/plugin-conf.d/munin-node

View File

@ -40,3 +40,10 @@
dest: /var/www/index.html
regexp: '__SERVERSTATUS_SUFFIX__'
replace: "{{ nginx_serverstatus_suffix }}"
- name: add server-status suffix in default VHost
replace:
dest: /etc/nginx/sites-available/evolinux-default.conf
regexp: 'location /nginx_status {'
replace: 'location /nginx_status-{{ nginx_serverstatus_suffix }} {'
notify: reload nginx