apache: server-status only for default vhost
This commit is contained in:
parent
e90d8ceec3
commit
03aae520e8
|
@ -22,3 +22,10 @@ SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!RC4
|
||||||
<Files ~ "\.(inc|bak)$">
|
<Files ~ "\.(inc|bak)$">
|
||||||
Require all denied
|
Require all denied
|
||||||
</Files>
|
</Files>
|
||||||
|
|
||||||
|
<IfModule mod_status.c>
|
||||||
|
ExtendedStatus On
|
||||||
|
<IfModule mod_proxy.c>
|
||||||
|
ProxyStatus On
|
||||||
|
</IfModule>
|
||||||
|
</IfModule>
|
||||||
|
|
|
@ -66,6 +66,12 @@
|
||||||
tags:
|
tags:
|
||||||
- apache
|
- apache
|
||||||
|
|
||||||
|
- name: disable status.conf
|
||||||
|
file:
|
||||||
|
dest: /etc/apache2/mods-enabled/status.conf
|
||||||
|
state: absent
|
||||||
|
notify: reload apache
|
||||||
|
|
||||||
- name: Ensure Apache config files are enabled
|
- name: Ensure Apache config files are enabled
|
||||||
command: "a2enconf {{ item }}"
|
command: "a2enconf {{ item }}"
|
||||||
register: command_result
|
register: command_result
|
||||||
|
|
|
@ -49,6 +49,15 @@
|
||||||
<Location /munin_opcache.php>
|
<Location /munin_opcache.php>
|
||||||
Require local
|
Require local
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
<IfModule mod_status.c>
|
||||||
|
<Location /server-status>
|
||||||
|
SetHandler server-status
|
||||||
|
include /etc/apache2/private_ipaddr_whitelist.conf
|
||||||
|
Require local
|
||||||
|
</Location>
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<IfModule mod_ssl.c>
|
<IfModule mod_ssl.c>
|
||||||
|
@ -101,5 +110,13 @@
|
||||||
ErrorLog /var/log/apache2/error.log
|
ErrorLog /var/log/apache2/error.log
|
||||||
LogLevel warn
|
LogLevel warn
|
||||||
|
|
||||||
|
<IfModule mod_status.c>
|
||||||
|
<Location /server-status>
|
||||||
|
SetHandler server-status
|
||||||
|
include /etc/apache2/private_ipaddr_whitelist.conf
|
||||||
|
Require local
|
||||||
|
</Location>
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
Loading…
Reference in a new issue