Lighttpd: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 17: | Line 17: | ||
== Configuration == | == Configuration == | ||
=== Setting up authentification === | |||
{{Box File|/etc/lighttpd/lighttpd.conf| | {{Box File|/etc/lighttpd/lighttpd.conf| | ||
<pre> | <pre> | ||
| Line 22: | Line 25: | ||
"mod_auth", | "mod_auth", | ||
) | ) | ||
auth.backend = "plain" | auth.backend = "plain" | ||
| Line 36: | Line 36: | ||
) | ) | ||
) | ) | ||
</pre> | |||
}} | |||
{{Box File|/var/www/localhost/lighttpd.user| | |||
<pre> | |||
admin:xxxxx | |||
</pre> | |||
=== Enabling CGI Support and rrd file processing === | |||
{{Box File|/etc/lighttpd/lighttpd.conf| | |||
<pre> | |||
# uncomment for cgi support | |||
include "mod_cgi.conf" | |||
</pre> | </pre> | ||
}} | }} | ||
| Line 41: | Line 55: | ||
{{Box File|/etc/lighttpd/mod_cgi.conf| | {{Box File|/etc/lighttpd/mod_cgi.conf| | ||
<pre> | <pre> | ||
$HTTP["url"] =~ "^/ | $HTTP["url"] =~ "^/sensord/" { | ||
dir-listing.activate = "disable" | dir-listing.activate = "disable" | ||
cgi.assign = ( | cgi.assign = ( | ||
".rrd" => "/usr/bin/ | ".rrd" => "/usr/bin/rrdcgi" | ||
) | ) | ||
} | } | ||
</pre> | </pre> | ||
}} | }} | ||
Revision as of 15:58, 27 August 2009
Description
Lightwight alternative to the allmighty Apache.
Dependencies
USE-Flags
Packages
Installation
# emerge lighttpd
Configuration
Setting up authentification
{{Box File|/var/www/localhost/lighttpd.user|
admin:xxxxx
Enabling CGI Support and rrd file processing
Finalize
# /etc/init.d/lighttpd start
# rc-update add lighttpd default