forked from evolix/ansible-roles
apache/nginx: add server status suffix in default site if missing
This commit is contained in:
parent
8e618ce70a
commit
b6499671fa
|
@ -11,8 +11,8 @@ The **patch** part changes incrementally at each release.
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
* apache: add server status suffix in VHost if missing
|
* apache: add server status suffix in VHost (and default site) if missing
|
||||||
* nginx: add server status suffix in VHost if missing
|
* nginx: add server status suffix in VHost (and default site) if missing
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* evocheck : version 19.04 from upstream
|
* evocheck : version 19.04 from upstream
|
||||||
|
|
|
@ -40,6 +40,12 @@
|
||||||
regexp: '__SERVERSTATUS_SUFFIX__'
|
regexp: '__SERVERSTATUS_SUFFIX__'
|
||||||
replace: "{{ apache_serverstatus_suffix }}"
|
replace: "{{ apache_serverstatus_suffix }}"
|
||||||
|
|
||||||
|
- name: add server-status suffix in default site index if missing
|
||||||
|
replace:
|
||||||
|
dest: /var/www/index.html
|
||||||
|
regexp: '"/server-status"'
|
||||||
|
replace: '"/server-status-{{ apache_serverstatus_suffix }}"'
|
||||||
|
|
||||||
- name: add server-status suffix in default VHost
|
- name: add server-status suffix in default VHost
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/apache2/sites-available/000-evolinux-default.conf
|
dest: /etc/apache2/sites-available/000-evolinux-default.conf
|
||||||
|
|
|
@ -41,6 +41,12 @@
|
||||||
regexp: '__SERVERSTATUS_SUFFIX__'
|
regexp: '__SERVERSTATUS_SUFFIX__'
|
||||||
replace: "{{ nginx_serverstatus_suffix }}"
|
replace: "{{ nginx_serverstatus_suffix }}"
|
||||||
|
|
||||||
|
- name: add server-status suffix in default site index if missing
|
||||||
|
replace:
|
||||||
|
dest: /var/www/index.html
|
||||||
|
regexp: '"/nginx_status"'
|
||||||
|
replace: '"/nginx_status-{{ nginx_serverstatus_suffix }}"'
|
||||||
|
|
||||||
- name: add server-status suffix in default VHost
|
- name: add server-status suffix in default VHost
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/nginx/sites-available/evolinux-default.conf
|
dest: /etc/nginx/sites-available/evolinux-default.conf
|
||||||
|
|
Loading…
Reference in a new issue