shithub: werc

ref: 9681c09647c3d4ef8bd5ab25df88cf7176c55707
dir: /bin/contrib/rc-httpd/handlers/__mkfstmp/

View raw version
#!/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