blob: 4d8a2d44a1cab9f892633420e87d5e5e3f2e2a4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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
|