dd
This commit is contained in:
parent
442b63496f
commit
8799208c2d
3 changed files with 50 additions and 0 deletions
|
@ -66,3 +66,5 @@ munin_hosts:
|
||||||
# notfications config
|
# notfications config
|
||||||
|
|
||||||
# cgi?
|
# cgi?
|
||||||
|
# rrdcache
|
||||||
|
# rolle wieder aus image ausabuen
|
||||||
|
|
|
@ -16,3 +16,12 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
|
- name: ensure apache.conf symlink exists
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: /etc/munin/apache24.conf
|
||||||
|
dest: /var/www/html/munin.mgrote.net
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
state: link
|
||||||
|
|
39
roles/mgrote_munin_server/dd
Normal file
39
roles/mgrote_munin_server/dd
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
DirectoryIndex index.php index.html
|
||||||
|
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName munin.mgrote.net
|
||||||
|
ServerAlias munin
|
||||||
|
|
||||||
|
ServerAdmin info@mgrote.net
|
||||||
|
|
||||||
|
DocumentRoot /var/www/html/munin.mgrote.net
|
||||||
|
|
||||||
|
ErrorLog /var/log/apache2/munin.mgrote.net-error.log
|
||||||
|
CustomLog /var/log/apache2/munin.mgrote.net-access.log combined
|
||||||
|
|
||||||
|
# Rewrites
|
||||||
|
RewriteEngine On
|
||||||
|
|
||||||
|
# Static content in /static
|
||||||
|
RewriteRule ^/favicon.ico /etc/munin/static/favicon.ico [L]
|
||||||
|
RewriteRule ^/static/(.*) /etc/munin/static/$1 [L]
|
||||||
|
|
||||||
|
# HTML
|
||||||
|
RewriteCond %{REQUEST_URI} .html$ [or]
|
||||||
|
RewriteCond %{REQUEST_URI} =/
|
||||||
|
RewriteRule ^/(.*) /usr/lib/munin/cgi/munin-cgi-html/$1 [L]
|
||||||
|
|
||||||
|
# Images
|
||||||
|
RewriteRule ^/munin-cgi/munin-cgi-graph/(.*) /usr/lib/munin/cgi/munin-cgi-graph/$1 [L]
|
||||||
|
|
||||||
|
# Ensure we can run (fast)cgi scripts
|
||||||
|
<Directory "/usr/lib/munin/cgi">
|
||||||
|
Options +ExecCGI
|
||||||
|
<IfModule mod_fcgid.c>
|
||||||
|
SetHandler fcgid-script
|
||||||
|
</IfModule>
|
||||||
|
<IfModule !mod_fcgid.c>
|
||||||
|
SetHandler cgi-script
|
||||||
|
</IfModule>
|
||||||
|
</Directory>
|
||||||
|
</VirtualHost>
|
Loading…
Reference in a new issue