Mine
public text v1 · immutable$HTTP["host"] == "hg.dronehive.net" {
server.document-root = "/srv/hg"
cgi.assign = ( ".cgi" => "/usr/bin/python" )
url.rewrite-once = (
"^/([/?].*)?$" => "/hgwebdir.cgi$1"
)
$HTTP["url"] =~ "^/hgwebdir.cgi([/?].*)?$" {
cgi.assign = ( ".cgi" => "/usr/bin/python" )
}
}