Difference between revisions of "Lighttpd"

From Q
Jump to navigation Jump to search
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",
 
)
 
)
 
# uncomment for cgi support
 
include "mod_cgi.conf"
 
  
 
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"] =~ "^/statistics/" {
+
$HTTP["url"] =~ "^/sensord/" {
 
     dir-listing.activate = "disable"
 
     dir-listing.activate = "disable"
 
     cgi.assign = (
 
     cgi.assign = (
                 ".rrd"  =>      "/usr/bin/perl"
+
                 ".rrd"  =>      "/usr/bin/rrdcgi"
 
         )
 
         )
 
}
 
}
</pre>
 
}}
 
 
{{Box File|/var/www/localhost/lighttpd.user|
 
<pre>
 
admin:xxxxx
 
 
</pre>
 
</pre>
 
}}
 
}}

Revision as of 16:58, 27 August 2009

Description

Lightwight alternative to the allmighty Apache.

Dependencies

USE-Flags

Packages

Template:Box Code

Installation

# emerge lighttpd

Configuration

Setting up authentification

Template:Box File

{{Box File|/var/www/localhost/lighttpd.user|

admin:xxxxx

Enabling CGI Support and rrd file processing

Template:Box File

Template:Box File

Finalize

# /etc/init.d/lighttpd start

# rc-update add lighttpd default