~kris/9p

krisyotam.net

ref: e60cf4fe0afb6a67a8806424c39080016d6da2e9 krisyotam.net/bin/contrib/rc-httpd/select-handler -rwxr-xr-x 222 bytes
e60cf4fe — Kris Yotam chore: sync local state after restore (push updates, no pull) a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/bin/rc
rfork n

if(~ $SERVER_NAME *){
	PATH_INFO=$location
	FS_ROOT=/home/krisyotam/dev/plan9.krisyotam.com/sites/$SERVER_NAME
	exec static-or-cgi /home/krisyotam/dev/plan9.krisyotam.com/bin/werc.rc
}
if not
	error 503