changelog shortlog tags branches changeset files revisions annotate raw help

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

changeset 672: cd59fedffc2e
parent: b501d0f9afa4
author: sl
date: Fri, 02 Dec 2016 20:35:58 -0500
permissions: -rwxr-xr-x
description: etc/initrc: change default markdown formatter from markdown.pl (no modern perl on plan 9) to md2html.awk (works everywhere)
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