changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > werc / bin/contrib/rc-httpd/select-handler

changeset 658: b501d0f9afa4
parent: fb460a671d19
author: sl
date: Thu, 04 Feb 2016 21:47:22 -0500
permissions: -rwxr-xr-x
description: bin/contrib/rc-httpd/: fix default paths and environment variables; create a generic default select-handler; add tcp80, used for launching rc-httpd from listen(8)
1 #!/bin/rc
2 rfork n
3 
4 # Route requests to werc.
5 # Change the werc path to match your system.
6 if(~ $SERVER_NAME *){
7  PATH_INFO=$location
8  FS_ROOT=/home/sl/www/werc/sites/$SERVER_NAME
9  exec static-or-cgi /home/sl/www/werc/bin/werc.rc
10 }
11 if not
12  error 503