All pastes #913984 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-22 15:04 UTC
rendered paste body
root@OpenWrt:/# cat /etc/lighttpd.conf
server.document-root = "/wwwroot/"

server.modules = (
        "mod_rewrite",
        "mod_redirect",
#       "mod_alias",
#       "mod_auth",
#       "mod_status",
#       "mod_setenv",
#       "mod_fastcgi",
#       "mod_proxy",
#       "mod_simple_vhost",
#       "mod_cgi",
#       "mod_ssi",
#       "mod_usertrack",
#       "mod_expire"
)

server.network-backend = "write"
server.errorlog = "/var/log/lighttpd/error.log"
index-file.names = ( "index.html", "default.html", "index.htm", "default.htm" )

mimetype.assign = (
        ".png"   => "image/png",
        ".html"  => "text/html",
        ".exe"   => "application/octet-stream"
 )

#server.error-handler-404 = "/error-handler.html"
server.pid-file = "/var/run/lighttpd.pid"

#### url handling modules (rewrite, redirect, access)
#url.rewrite = ( "^/$" => "/server-status" )
#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )

#### both rewrite/redirect support back reference to regex conditional using %n
#$HTTP["host"] =~ "^www\.(.*)" {
#       url.redirect = ( "^/(.*)" => "http://%1/$1" )
#}
root@OpenWrt:/# lighttpd -f /etc/lighttpd.conf -D
2008-02-22 15:03:11: (configfile.c.1128) a default document-root has to be set
2008-02-22 15:03:11: (server.c.591) setting default values failed
root@OpenWrt:/# lighttpd -f /etc/lighttpd.conf -p
config {
    var.PID        = 1490
    var.CWD        = "/"
    server.modules = ("mod_indexfile", "mod_dirlisting", "mod_staticfile")

}
root@OpenWrt:/# lighttpd -f /etc/lighttpd.conf -t
Syntax OK
root@OpenWrt:/#