ref: 56fd1b6727b4191e5b6e4f00485811a971b88a7f
dir: /rc/bin/rc-httpd/handlers/static-or-cgi/
#!/bin/rc
cgiargs=$*
fn error{
if(~ $1 404)
exec cgi $cgiargs
if not
$rc_httpd_dir/handlers/error $1
}
if(~ $location */)
exec cgi $cgiargs
if not
exec serve-static