forked from evolix/ansible-roles
nginx: change from "nginx_status-XXX" to "server-status-XXX"
This commit is contained in:
parent
51cec4bce1
commit
1d56e002b4
|
@ -16,6 +16,8 @@ The **patch** part changes incrementally at each release.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
* nginx: change from "nginx_status-XXX" to "server-status-XXX"
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
- name: add server-status suffix in default site index if missing
|
- name: add server-status suffix in default site index if missing
|
||||||
replace:
|
replace:
|
||||||
dest: /var/www/index.html
|
dest: /var/www/index.html
|
||||||
regexp: '"/nginx_status-?"'
|
regexp: '"/server-status-?"'
|
||||||
replace: '"/nginx_status-{{ nginx_serverstatus_suffix }}"'
|
replace: '"/server-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
|
||||||
regexp: 'location /nginx_status-? {'
|
regexp: 'location /server-status-? {'
|
||||||
replace: 'location /nginx_status-{{ nginx_serverstatus_suffix }} {'
|
replace: 'location /server-status-{{ nginx_serverstatus_suffix }} {'
|
||||||
notify: reload nginx
|
notify: reload nginx
|
||||||
|
|
|
@ -50,7 +50,7 @@ server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name munin;
|
server_name munin;
|
||||||
|
|
||||||
location /nginx_status-{{ nginx_serverstatus_suffix | mandatory }} {
|
location /server-status-{{ nginx_serverstatus_suffix | mandatory }} {
|
||||||
stub_status on;
|
stub_status on;
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
[nginx_*]
|
[nginx_*]
|
||||||
env.url http://munin/nginx_status-{{ nginx_serverstatus_suffix }}
|
env.url http://munin/server-status-{{ nginx_serverstatus_suffix }}
|
||||||
|
|
Loading…
Reference in a new issue