forked from evolix/ansible-roles
Better minimalist config in the vhost
Also install mandatory package libcgi-fast-perl.
This commit is contained in:
parent
3e1a600fd5
commit
c2f6708645
|
@ -2,13 +2,20 @@
|
||||||
|
|
||||||
- name: install packages for Apache and Munin
|
- name: install packages for Apache and Munin
|
||||||
apt:
|
apt:
|
||||||
name: libapache2-mod-fcgid
|
name: "{{ item }}"
|
||||||
state: installed
|
state: installed
|
||||||
|
with_items:
|
||||||
|
- libapache2-mod-fcgid
|
||||||
|
- libcgi-fast-perl
|
||||||
notify: reload apache
|
notify: reload apache
|
||||||
tags:
|
tags:
|
||||||
- apache
|
- apache
|
||||||
- munin
|
- munin
|
||||||
|
|
||||||
|
- name: change group for /var/log/munin/
|
||||||
|
file:
|
||||||
|
group: www-data
|
||||||
|
|
||||||
- name: install munin plugins
|
- name: install munin plugins
|
||||||
file:
|
file:
|
||||||
src: "/etc/munin/plugins/{{ item }}"
|
src: "/etc/munin/plugins/{{ item }}"
|
||||||
|
|
|
@ -47,29 +47,12 @@
|
||||||
Require all denied
|
Require all denied
|
||||||
Include /etc/apache2/private_ipaddr_whitelist.conf
|
Include /etc/apache2/private_ipaddr_whitelist.conf
|
||||||
</Directory>
|
</Directory>
|
||||||
<Directory /usr/lib/munin/cgi/>
|
# munin-cgi-graph, used for zooming on graphs.
|
||||||
Options -Indexes
|
|
||||||
Require all denied
|
|
||||||
Include /etc/apache2/private_ipaddr_whitelist.conf
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
# Munin cgi
|
|
||||||
# Ensure we can run (fast)cgi scripts
|
|
||||||
ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
|
ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
|
||||||
<Location /munin-cgi/munin-cgi-graph>
|
<Location /munin-cgi/munin-cgi-graph>
|
||||||
Options +ExecCGI
|
Options +ExecCGI
|
||||||
<IfModule mod_fcgid.c>
|
Require all denied
|
||||||
SetHandler fcgid-script
|
Include /etc/apache2/private_ipaddr_whitelist.conf
|
||||||
</IfModule>
|
|
||||||
<IfModule mod_fastcgi.c>
|
|
||||||
SetHandler fastcgi-script
|
|
||||||
</IfModule>
|
|
||||||
<IfModule !mod_fastcgi.c>
|
|
||||||
<IfModule !mod_fcgid.c>
|
|
||||||
SetHandler cgi-script
|
|
||||||
</IfModule>
|
|
||||||
</IfModule>
|
|
||||||
Allow from all
|
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
# For CGI Scripts. We need to set Directory directive as ScriptAlias take precedence.
|
# For CGI Scripts. We need to set Directory directive as ScriptAlias take precedence.
|
||||||
|
|
Loading…
Reference in a new issue