server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect", # "mod_proxy", ) server.document-root = "/srv/http/deb" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.pid-file = "/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.port = 80 dir-listing.activate = "enable" dir-listing.encoding = "utf-8" dir-listing.show-readme = "enable" dir-listing.show-header = "enable" dir-listing.external-css = "/tweaks/debian.css" dir-listing.set-footer = "lighttpd/1.4.31 on debian.takhis.net (wheezy/soekris)" index-file.names = ( "index.html" ) url.access-deny = ( "~", ".inc" ) compress.cache-dir = "/var/cache/lighttpd/compress/" compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" ) static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) include_shell "/usr/share/lighttpd/create-mime.assign.pl" mimetype.assign += ( ".tar.gz" => "application/x-tgz", ".gz" => "application/x-gzip", "" => "text/plain", ) $HTTP["host"] =~ "^www\.(.*)$" { url.redirect = ( "^/(.*)" => "http://%1/$1" ) } $HTTP["host"] == "takhis.com" { server.document-root = "/srv/http/com/" } $HTTP["host"] == "takhis.net" { server.document-root = "/srv/http/net/" } $HTTP["host"] == "autoconfig.takhis.net" { server.document-root = "/srv/http/ars/" dir-listing.external-css = "" } $HTTP["host"] == "debian.takhis.net" { server.document-root = "/srv/http/deb/" } $HTTP["host"] == "necroth.takhis.net" { url.redirect = ( "" => "http://takhis.net/" ) } $HTTP["host"] == "reverie.takhis.net" { url.redirect = ( "" => "http://takhis.net/" ) } $HTTP["host"] == "work.takhis.net" { # proxy.balance = "hash" # proxy.server = ( "" => ( ( "host" => "10.0.0.40" ) ) ) server.document-root = "/srv/http/w" dir-listing.external-css = "" } $HTTP["host"] == "pizzakjallarin.fo" { server.document-root = "/srv/http/foo/" }