shithub: werc

ref: 1ba3bb1c65e076b508c5e615582e777ef39240dd
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