Close down apache-status from the public

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2018-01-03 21:55:31 +01:00
parent 22cd1bc504
commit 5a5dc9d9b0
2 changed files with 7 additions and 0 deletions

View file

@ -2,4 +2,10 @@ ExtendedStatus on
<Location /apache-status>
SetHandler server-status
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
Require host localhost
Require valid-user
</RequireAny>
</Location>

View file

@ -85,6 +85,7 @@
tags:
- config
- apache
- apachestatus
- name: setup logrotate to our needs
copy: src="{{ files }}/httpd/httpd.logrotate" dest=/etc/logrotate.d/httpd