server.modules = ( "mod_proxy" ) server.document-root = "/var/www" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.pid-file = "/var/run/lighttpd.pid" server.username = "_lighttpd" server.groupname = "_lighttpd" server.port = 80 $HTTP["host"] =~ "localhost" { proxy.server = ( "" => (( "host" => "localhost" ,"port" => 6080 )) ) #proxy.header = ( # "map-host-request" => ( # "-" => "127.0.0.1:6080" # ) # ,"upgrade" => "enable" #) } index-file.names = ( "index.php", "index.html", "index.lighttpd.html", "index.cgi" ) url.access-deny = ( "~", ".inc" ) static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )