select-handler (448B)
1 #!/bin/rc 2 rfork n 3 4 # Route requests to werc. 5 # Change paths to match your system. 6 7 if(~ $SERVER_NAME 9base.werc.cat-v.org) 8 PLAN9=/usr/local/9base 9 if(~ $SERVER_NAME frontbase.werc.cat-v.org) 10 PLAN9=/usr/local/plan9front 11 if(~ $SERVER_NAME plan9port.werc.cat-v.org) 12 PLAN9=/usr/local/plan9 13 14 if(~ $SERVER_NAME *){ 15 PATH_INFO=$location 16 FS_ROOT=/home/sl/www/werc/sites/$SERVER_NAME 17 exec static-or-cgi /home/sl/www/werc/bin/werc.rc 18 } 19 if not 20 error 503