lighttpd.conf (756B)
1 # This is a minimal example config 2 # See /usr/share/doc/lighttpd 3 # and https://wiki.lighttpd.net/Docs:ConfigurationOptions 4 5 server.username = "http" 6 server.groupname = "http" 7 server.document-root = "/srv/http" 8 dir-listing.activate = "enable" 9 index-file.names = ( "home.sh" ) 10 server.modules += ( 11 "mod_alias", 12 "mod_cgi", 13 "mod_rewrite" 14 ) 15 16 alias.url += ( "/cgi-bin/" => "/srv/http/cgi-bin/" ) 17 18 $HTTP["url"] =~ "^/cgi-bin/" { 19 cgi.assign = ( 20 ".sh" => "/bin/sh", 21 "" => "" 22 ) 23 } 24 25 url.rewrite-once = ( 26 "^/(\?.*)?$" => "/cgi-bin/home$1", 27 "^/problems(/[^?]*)?(\?.*)?$" => "/cgi-bin/problems$1$2" 28 )