server.document-root = "/www/default/" server.port = 80 server.username = "httpd" server.groupname = "www" server.errorlog = "/var/log/lighttpd.error.log" mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png", ".css" => "text/css", ) static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc" ) index-file.names = ( "index.html", "default.html", "index.htm", "default.htm" ) server.modules = ( "mod_rewrite", "mod_alias", "mod_access", "mod_auth", "mod_fastcgi", "mod_accesslog" ) $HTTP["host"] == "media.***.com" { server.document-root = "/www/***/media/" } $HTTP["host"] =~ "^www\.***\.com|^***\.com" { fastcgi.server = ( "/***.fcgi" => ( "main" => ( "socket" => "/www/**/**.sock", "check-local" => "disable" ) ) ) } $HTTP["host"] == "rts.binaryroulette.com" { server.document-root = "/www/rts/" alias.url = ("/chrome/common" => "/usr/share/trac/htdocs") fastcgi.server = ( "/t" => ( "main" => ( "bin-path" => "/opt/trac/cgi-bin/trac.fcgi", "socket" => "/tmp/trac-fastcgi.sock", "check-local" => "disable", "bin-environment" => ("TRAC_ENV" => "/rts/trac"), ) ) ) auth.require = ( "/t" => ( "method" => "digest", "realm" => "Trac", "require" => "valid-user" ) ) auth.backend = "htdigest" auth.backend.htdigest.userfile = "/rts/trac/htdigest" } $HTTP["host"] =~ "(^|\.)binaryroulette\.com$" { server.document-root = "/www/br/" }