Two new handlers have been added, dramatically reducing complexity in select-handler. select-handler.example has gone from 93 lines to 55 while performance has increased due to werc being called correctly in one case, a change which would have required an additional 13 lines in version 1.2.

## New requirement:

The cgi handler now requires pwd. p9p does not provide this so you may need to add /bin and /usr/bin back into $path.

## New handlers:

static-or-index
This new handler calls serve-static or dir-index as appropriate, no more code discriminating between them for almost-identical paths.

static-or-cgi
This one wraps the messy task of installing a cgi script as a 404 handler.

## CGI fixes

cgi should now handle being given an explicit interpreter, e.g:

    /usr/bin/python [options] /foo/bar/baz.py

p9p / 9base path elements are no longer passed to cgi scripts. A separate path is kept, $cgi_path, set at the top of main.

$SERVER_NAME is now set correctly when rc-httpd is running on a non- standard port, and $SERVER_PORT is also set.

## Minor changes:

New testing module: form-test

$NOINDEX (option to dir-index) renamed to $NOINDEXFILE. The old name still works.

# Links:

rc-httpd is now kept at:
http://static.ethans.dre.am/rc-httpd/

Direct download:
http://static.ethans.dre.am/rc-httpd/rc-httpd-1.3.tar.bz2



--
Simplicity does not precede complexity, but follows it. -- Alan Perlis

--
You received this message because you are subscribed to the Google Groups 
"werc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/werc9?hl=en.

Reply via email to