Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 635986 Details for
Bug 720954
www-servers/lighttpd-1.4.53: Fastcgi for munin-2.0.56 cgi connection refused on socket
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Combined lighttpd and munin config
lighttpd_munin_conf.txt (text/plain), 13.76 KB, created by
squishypandadev
on 2020-05-04 15:11:22 UTC
(
hide
)
Description:
Combined lighttpd and munin config
Filename:
MIME Type:
Creator:
squishypandadev
Created:
2020-05-04 15:11:22 UTC
Size:
13.76 KB
patch
obsolete
># cat lighttpd.conf >############################################################################### ># Default lighttpd.conf for Gentoo. >############################################################################### > ># {{{ variables >var.basedir = "/var/www" >var.logdir = "/var/log/lighttpd" >var.statedir = "/var/lib/lighttpd" ># }}} > ># {{{ modules ># At the very least, mod_access and mod_accesslog should be enabled. ># All other modules should only be loaded if necessary. ># NOTE: the order of modules is important. >server.modules = ( >"mod_rewrite", ># "mod_redirect", ># "mod_alias", >"mod_access", ># "mod_cml", ># "mod_trigger_b4_dl", ># "mod_auth", ># "mod_status", ># "mod_setenv", ># "mod_proxy", ># "mod_simple_vhost", ># "mod_evhost", ># "mod_userdir", ># "mod_compress", ># "mod_ssi", ># "mod_usertrack", ># "mod_expire", ># "mod_secdownload", ># "mod_rrdtool", ># "mod_webdav", >"mod_accesslog", >"mod_fastcgi" >) ># }}} > ># {{{ includes >include "mime-types.conf" ># fcgi and cgi are included below ># }}} > ># {{{ server settings >server.username = "lighttpd" >server.groupname = "lighttpd" > >server.document-root = var.basedir + "/general-server" >server.pid-file = "/run/lighttpd.pid" > >server.errorlog = var.logdir + "/error.log" ># log errors to syslog instead ># server.errorlog-use-syslog = "enable" > >server.indexfiles = ("index.php", "index.html", "index.htm", "default.htm") > >server.tag = "lighttpd" > >server.follow-symlink = "enable" > >fastcgi.server += ( > "/munin-cgi/munin-cgi-graph" => > (( > "socket" => "/var/run/lighttpd/munin-cgi-graph.sock", > "bin-path" => "/usr/libexec/munin/cgi/munin-cgi-graph", > "check-local" => "disable", > )), > > "/munin-cgi/munin-cgi-html" => > (( > "socket" => "/var/run/lighttpd/munin-cgi-html.sock", > "bin-path" => "/usr/libexec/munin/cgi/munin-cgi-html", > "check-local" => "disable", > )) >) > >url.rewrite-repeat += ( > "/munin/(.*)" => "/munin-cgi/munin-cgi-html/$1", > "/munin-cgi/munin-cgi-html$" => "/munin-cgi/munin-cgi-html/", > "/munin-cgi/munin-cgi-html/static/(.*)" => "/munin-static/$1" >) > ># event handler (defaults to "poll") ># see performance.txt ># ># for >= linux-2.4 ># server.event-handler = "linux-rtsig" ># for >= linux-2.6 ># server.event-handler = "linux-sysepoll" ># for FreeBSD ># server.event-handler = "freebsd-kqueue" > ># chroot to directory (defaults to no chroot) ># server.chroot = "/" > ># bind to port (defaults to 80) ># server.port = 81 > ># bind to name (defaults to all interfaces) >server.bind = "10.5.0.1" > ># error-handler for status 404 ># server.error-handler-404 = "/error-handler.html" ># server.error-handler-404 = "/error-handler.php" > ># Format: <errorfile-prefix><status-code>.html ># -> ..../status-404.html for 'File not found' ># server.errorfile-prefix = var.basedir + "/error/status-" > ># FAM support for caching stat() calls ># requires that lighttpd be built with USE=fam ># server.stat-cache-engine = "fam" > ># If lighttpd was build with IPv6 support, and you would like to listen on IPv6, ># uncomment the following: >server.use-ipv6 = "enable" > ># }}} > ># {{{ mod_staticfile > ># which extensions should not be handled via static-file transfer ># (extensions that are usually handled by mod_cgi, mod_fastcgi, etc). >static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi") ># }}} > ># {{{ mod_accesslog >accesslog.filename = var.logdir + "/access.log" ># }}} > ># {{{ mod_dirlisting ># enable directory listings ># dir-listing.activate = "enable" ># ># don't list hidden files/directories ># dir-listing.hide-dotfiles = "enable" ># ># use a different css for directory listings ># dir-listing.external-css = "/path/to/dir-listing.css" ># ># list of regular expressions. files that match any of the ># specified regular expressions will be excluded from directory ># listings. ># dir-listing.exclude = ("^\.", "~$") ># }}} > ># {{{ mod_access ># see access.txt > >url.access-deny = ("~", ".inc") ># }}} > ># {{{ mod_userdir ># see userdir.txt ># ># userdir.path = "public_html" ># userdir.exclude-user = ("root") ># }}} > ># {{{ mod_ssi ># see ssi.txt ># ># ssi.extension = (".shtml") ># }}} > ># {{{ mod_ssl ># see ssl.txt ># ># ssl.engine = "enable" ># ssl.pemfile = "server.pem" ># }}} > ># {{{ mod_status ># see status.txt ># ># status.status-url = "/server-status" ># status.config-url = "/server-config" ># }}} > ># {{{ mod_simple_vhost ># see simple-vhost.txt ># ># If you want name-based virtual hosting add the next three settings and load ># mod_simple_vhost ># ># document-root = ># virtual-server-root + virtual-server-default-host + virtual-server-docroot ># or ># virtual-server-root + http-host + virtual-server-docroot ># ># simple-vhost.server-root = "/home/weigon/wwwroot/servers/" ># simple-vhost.default-host = "grisu.home.kneschke.de" ># simple-vhost.document-root = "/pages/" ># }}} > ># {{{ mod_compress ># see compress.txt ># ># compress.cache-dir = var.statedir + "/cache/compress" ># compress.filetype = ("text/plain", "text/html") ># }}} > ># {{{ mod_proxy ># see proxy.txt ># ># proxy.server = ( ".php" => ># ( "localhost" => ># ( ># "host" => "192.168.0.101", ># "port" => 80 ># ) ># ) ># ) ># }}} > ># {{{ mod_auth ># see authentication.txt ># ># auth.backend = "plain" ># auth.backend.plain.userfile = "lighttpd.user" ># auth.backend.plain.groupfile = "lighttpd.group" > ># auth.backend.ldap.hostname = "localhost" ># auth.backend.ldap.base-dn = "dc=my-domain,dc=com" ># auth.backend.ldap.filter = "(uid=$)" > ># auth.require = ( "/server-status" => ># ( ># "method" => "digest", ># "realm" => "download archiv", ># "require" => "user=jan" ># ), ># "/server-info" => ># ( ># "method" => "digest", ># "realm" => "download archiv", ># "require" => "valid-user" ># ) ># ) ># }}} > ># {{{ mod_rewrite ># see rewrite.txt ># ># url.rewrite = ( ># "^/$" => "/server-status" ># ) ># }}} > ># {{{ mod_redirect ># see redirect.txt ># ># url.redirect = ( ># "^/wishlist/(.+)" => "http://www.123.org/$1" ># ) ># }}} > ># {{{ mod_evhost ># define a pattern for the host url finding ># %% => % sign ># %0 => domain name + tld ># %1 => tld ># %2 => domain name without tld ># %3 => subdomain 1 name ># %4 => subdomain 2 name ># ># evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/" ># }}} > ># {{{ mod_expire ># expire.url = ( ># "/buggy/" => "access 2 hours", ># "/asdhas/" => "access plus 1 seconds 2 minutes" ># ) ># }}} > ># {{{ mod_rrdtool ># see rrdtool.txt ># ># rrdtool.binary = "/usr/bin/rrdtool" ># rrdtool.db-name = var.statedir + "/lighttpd.rrd" ># }}} > ># {{{ mod_setenv ># see setenv.txt ># ># setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" ) ># setenv.add-response-header = ( "X-Secret-Message" => "42" ) ># }}} > ># {{{ mod_trigger_b4_dl ># see trigger_b4_dl.txt ># ># trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db" ># trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" ) ># trigger-before-download.trigger-url = "^/trigger/" ># trigger-before-download.download-url = "^/download/" ># trigger-before-download.deny-url = "http://127.0.0.1/index.html" ># trigger-before-download.trigger-timeout = 10 ># }}} > ># {{{ mod_cml ># see cml.txt ># ># don't forget to add index.cml to server.indexfiles ># cml.extension = ".cml" ># cml.memcache-hosts = ( "127.0.0.1:11211" ) ># }}} > ># {{{ mod_webdav ># see webdav.txt ># ># $HTTP["url"] =~ "^/dav($|/)" { ># webdav.activate = "enable" ># webdav.is-readonly = "enable" ># } ># }}} > ># {{{ extra rules ># ># set Content-Encoding and reset Content-Type for browsers that ># support decompressing on-thy-fly (requires mod_setenv) ># $HTTP["url"] =~ "\.gz$" { ># setenv.add-response-header = ("Content-Encoding" => "x-gzip") ># mimetype.assign = (".gz" => "text/plain") ># } > ># $HTTP["url"] =~ "\.bz2$" { ># setenv.add-response-header = ("Content-Encoding" => "x-bzip2") ># mimetype.assign = (".bz2" => "text/plain") ># } ># ># }}} > ># {{{ debug ># debug.log-request-header = "enable" ># debug.log-response-header = "enable" ># debug.log-request-handling = "enable" ># debug.log-file-not-found = "enable" ># }}} > ># {{{ cgi includes ># uncomment for cgi support ># include "mod_cgi.conf" ># uncomment for php/fastcgi support ># include "mod_fastcgi.conf" ># }}} > ># vim: set ft=conf foldmethod=marker et : > ># cat munin.conf ># Example configuration file for Munin, generated by 'make build' > ># The next three variables specifies where the location of the RRD ># databases, the HTML output, logs and the lock/pid files. They all ># must be writable by the user running munin-cron. They are all ># defaulted to the values you see here. ># >#dbdir /var/lib/munin >htmldir /var/www/general-server/munin >#logdir /var/log/munin >#rundir /run/munin > ># Where to look for the HTML templates ># >#tmpldir /etc/munin/templates > ># Where to look for the static www files ># >#staticdir /etc/munin/static > ># temporary cgi files are here. note that it has to be writable by ># the cgi user (usually nobody or httpd). ># ># cgitmpdir /var/cache/munin-cgi > ># (Exactly one) directory to include all files from. >includedir /etc/munin/munin-conf.d > ># You can choose the time reference for "DERIVE" like graphs, and show ># "per minute", "per hour" values instead of the default "per second" ># >#graph_period second > ># Graphics files are generated either via cron or by a CGI process. ># See http://munin-monitoring.org/wiki/CgiHowto2 for more ># documentation. ># Since 2.0, munin-graph has been rewritten to use the cgi code. ># It is single threaded *by design* now. ># >graph_strategy cgi > ># munin-cgi-graph is invoked by the web server up to very many times at the ># same time. This is not optimal since it results in high CPU and memory ># consumption to the degree that the system can thrash. Again the default is ># 6. Most likely the optimal number for max_cgi_graph_jobs is the same as ># max_graph_jobs. ># >#munin_cgi_graph_jobs 6 > ># If the automatic CGI url is wrong for your system override it here: ># >#cgiurl_graph /munin-cgi/munin-cgi-graph > ># max_size_x and max_size_y are the max size of images in pixel. ># Default is 4000. Do not make it too large otherwise RRD might use all ># RAM to generate the images. ># >#max_size_x 4000 >#max_size_y 4000 > ># HTML files are normally generated by munin-html, no matter if the ># files are used or not. You can change this to on-demand generation ># by following the instructions in http://munin-monitoring.org/wiki/CgiHowto2 ># ># Notes: ># - moving to CGI for HTML means you cannot have graph generated by cron. ># - cgi html has some bugs, mostly you still have to launch munin-html by hand ># >html_strategy cgi > ># munin-update runs in parallel. ># ># The default max number of processes is 16, and is probably ok for you. ># ># If set too high, it might hit some process/ram/filedesc limits. ># If set too low, munin-update might take more than 5 min. ># ># If you want munin-update to not be parallel set it to 0. ># >#max_processes 16 > ># RRD updates are per default, performed directly on the rrd files. ># To reduce IO and enable the use of the rrdcached, uncomment it and set it to ># the location of the socket that rrdcached uses. ># >#rrdcached_socket /var/run/rrdcached.sock > ># Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime ># something changes (OK -> WARNING, CRITICAL -> OK, etc) >#contact.someuser.command mail -s "Munin ${var:worst}: ${var:group}::${var:host}::${var:plugin}" somejuser@fnord.comm >#contact.anotheruser.command mail -s "Munin ${var:worst}: ${var:group}::${var:host}::${var:plugin}" anotheruser@blibb.comm ># ># For those with Nagios, the following might come in handy. In addition, ># the services must be defined in the Nagios server as well. >#contact.nagios.command /usr/bin/send_nsca nagios.host.comm -c /etc/nsca.conf > ># a simple host tree >[general-server] > address 127.0.0.1 > use_node_name yes > ># ># A more complex example of a host tree ># >## First our "normal" host. ># [fii.foo.com] ># address foo ># >## Then our other host... ># [fay.foo.com] ># address fay ># >## IPv6 host. note that the ip adress has to be in brackets ># [ip6.foo.com] ># address [2001::1234:1] ># >## Then we want totals... ># [foo.com;Totals] #Force it into the "foo.com"-domain... ># update no # Turn off data-fetching for this "host". ># ># # The graph "load1". We want to see the loads of both machines... ># # "fii=fii.foo.com:load.load" means "label=machine:graph.field" ># load1.graph_title Loads side by side ># load1.graph_order fii=fii.foo.com:load.load fay=fay.foo.com:load.load ># ># # The graph "load2". Now we want them stacked on top of each other. ># load2.graph_title Loads on top of each other ># load2.dummy_field.stack fii=fii.foo.com:load.load fay=fay.foo.com:load.load ># load2.dummy_field.draw AREA # We want area instead the default LINE2. ># load2.dummy_field.label dummy # This is needed. Silly, really. ># ># # The graph "load3". Now we want them summarised into one field ># load3.graph_title Loads summarised ># load3.combined_loads.sum fii.foo.com:load.load fay.foo.com:load.load ># load3.combined_loads.label Combined loads # Must be set, as this is ># # not a dummy field! ># >## ...and on a side note, I want them listen in another order (default is >## alphabetically) ># ># # Since [foo.com] would be interpreted as a host in the domain "com", we ># # specify that this is a domain by adding a semicolon. ># [foo.com;] ># node_order Totals fii.foo.com fay.foo.com >#
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 720954
:
635984
| 635986 |
635988