server.name = "git.zlg.space" server.document-root = var.basedir + "/cgit" index-file.names = ( "cgit.cgi" ) cgi.assign = ( "cgit.cgi" => "" ) dir-listing.activate = "disable" url.rewrite-once = ( # Serve static files plainly "^/(?:cgit.css|favicon.ico|cgit.png|robots.txt)$" => "", # and let cgit handle the rest "" => "/cgit.cgi?url=${url.path}${qsa}" # If the above line doesn't work (lighty < 1.4.50), uncomment this one: #"^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2" )