apache/nginx: add server status suffix in VHost if missing
This commit is contained in:
parent
5dc84d42f3
commit
8e618ce70a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue