1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
.. _example-webserver-lighttpd:
========================
lighttpd configuration
========================
This example describes how to set up munin on lighttpd. It spawns two
lighttpd processes, one for the graph rendering, and one for the html
generation.
You need to enable the "mod_rewrite" module in the main lighttpd
configuration.
Munin configuration
===================
This example assumes the following configuration in
/etc/munin/munin.conf
.. index::
pair: example; munin.conf
::
# Use cgi rendering for graph and html
graph_strategy cgi
html_strategy cgi
Webserver configuration
=======================
.. index::
pair: example; lighttpd configuration
::
alias.url += ( "/munin-static" => "/etc/munin/static" )
alias.url += ( "/munin" => "/var/cache/munin/www/" )
fastcgi.server += ("/munin-cgi/munin-cgi-graph" =>
(( "socket" => "/var/run/lighttpd/munin-cgi-graph.sock",
"bin-path" => "/usr/lib/munin/cgi/munin-cgi-graph",
"check-local" => "disable",
)),
"/munin-cgi/munin-cgi-html" =>
(( "socket" => "/var/run/lighttpd/munin-cgi-html.sock",
"bin-path" => "/usr/lib/munin/cgi/munin-cgi-html",
"check-local" => "disable",
))
)
url.rewrite-repeat-if-not-file += (
"/munin/(.*)" => "/munin-cgi/munin-cgi-html/$1",
"/munin-cgi/munin-cgi-html$" => "/munin-cgi/munin-cgi-html/",
)
|