From e761ae8344a098f46a37789c5b02bba1a424aa24 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 4 Nov 2012 17:23:46 +0100 Subject: add+configure munin --- etc/apache2/conf.d/munin | 86 ++++++++++++++++++++++++++ etc/apache2/sites-available/jenkins.debian.net | 42 +++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 etc/apache2/conf.d/munin create mode 100644 etc/apache2/sites-available/jenkins.debian.net (limited to 'etc/apache2') diff --git a/etc/apache2/conf.d/munin b/etc/apache2/conf.d/munin new file mode 100644 index 00000000..2c77e185 --- /dev/null +++ b/etc/apache2/conf.d/munin @@ -0,0 +1,86 @@ +# Enable this for template generation +Alias /munin /var/cache/munin/www + +# Enable this for cgi-based templates +#Alias /munin-cgi/static /var/cache/munin/www/static +#ScriptAlias /munin-cgi /usr/lib/munin/cgi/munin-cgi-html +# +# Order allow,deny +# Allow from localhost 127.0.0.0/8 ::1 +# AuthUserFile /etc/munin/munin-htpasswd +# AuthName "Munin" +# AuthType Basic +# require valid-user +# + + + Order allow,deny + Allow from all + Options None + + # This file can be used as a .htaccess file, or a part of your apache + # config file. + # + # For the .htaccess file option to work the munin www directory + # (/var/cache/munin/www) must have "AllowOverride all" or something + # close to that set. + # + + # AuthUserFile /etc/munin/munin-htpasswd + # AuthName "Munin" + # AuthType Basic + # require valid-user + + # This next part requires mod_expires to be enabled. + # + + # Set the default expiration time for files to 5 minutes 10 seconds from + # their creation (modification) time. There are probably new files by + # that time. + # + + + ExpiresActive On + ExpiresDefault M310 + + + + +# Enables fastcgi for munin-cgi-html if present +# +# +# SetHandler fastcgi-script +# +# + +# +# SetHandler None +# + +# Enables fastcgi for munin-cgi-graph if present +ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph + + Order allow,deny + Allow from localhost 127.0.0.0/8 ::1 + # AuthUserFile /etc/munin/munin-htpasswd + # AuthName "Munin" + # AuthType Basic + # require valid-user + + SetHandler fastcgi-script + + + +ScriptAlias /munin-cgi/munin-cgi-html /usr/lib/munin/cgi/munin-cgi-html + + Order allow,deny + Allow from localhost 127.0.0.0/8 ::1 + # AuthUserFile /etc/munin/munin-htpasswd + # AuthName "Munin" + # AuthType Basic + # require valid-user + + SetHandler fastcgi-script + + + diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net new file mode 100644 index 00000000..dc2d5b59 --- /dev/null +++ b/etc/apache2/sites-available/jenkins.debian.net @@ -0,0 +1,42 @@ + + ServerAdmin webmaster@localhost + + DocumentRoot /var/www + + Options FollowSymLinks + AllowOverride None + + + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + + + ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ + + AllowOverride None + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch + Order allow,deny + Allow from all + + + ProxyRequests Off + + Order deny,allow + Allow from all + + ProxyPreserveHost on + # proxy everything but /munin + ProxyPass /munin ! + ProxyPass / http://localhost:8080/ + + + ErrorLog ${APACHE_LOG_DIR}/error.log + + # Possible values include: debug, info, notice, warn, error, crit, + # alert, emerg. + LogLevel warn + + CustomLog ${APACHE_LOG_DIR}/access.log combined + -- cgit v1.2.3-70-g09d2