Child pages
  • lighttpd setup
Skip to end of metadata
Go to start of metadata

Set up lighttpd.conf

server.modules = (
    "mod_rewrite",
    "mod_redirect",
    "mod_alias",
    "mod_access",
    "mod_proxy",
    "mod_accesslog" )
static-file.etags = "enable"
etag.use-mtime = "enable"
$HTTP["host"] == "yourdomain" {
 server.document-root = "/opt/noc"
 proxy.server = ( "/noc.proxy" => (("host" => "127.0.0.1", "port" => 8000)) ) 
 alias.url=(
 "/media/" => "alias /opt/noc/contrib/lib/django/contrib/admin/static/",
 )
 url.rewrite-once=(
 "^(/media.*)$" => "$1",
 "^/static/(.*)$" => "/static/$1",
 "^(/.*)$" => "/noc.proxy$1",
 )
 accesslog.filename="/var/log/lighttpd/yourdomain.access.log"
}