ref: 62c69b81c7249ee4e69c44c64391cdf9d1a7fc3e
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