templates/config/obj.conf

Sat, 28 Jan 2017 10:38:34 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 28 Jan 2017 10:38:34 +0100
changeset 162
b169992137a8
parent 118
38bf6dd8f4e7
child 456
52a4e1ea043e
permissions
-rw-r--r--

improves cgi error handling and allows requests with empty headers

also fixes broken windows porting commit

#
# obj.conf
#
# NSAPI configuration
#

<Object name="default">
NameTrans fn="assign-name" from="/hello" name="hello"
NameTrans fn="assign-name" from="/admin" name="admin"
PathCheck fn="find-pathinfo"
ObjectType fn="type-by-extension"
Service fn="send-options" method="OPTIONS"
Service fn="common-index" type="internal/directory"
Service fn="send-file"
AddLog fn="common-log"
</Object>

<Object name="hello">
Service fn="service-hello"
</Object>

<Object name="admin">
Service fn="admin-service"
</Object>

<Object name="cgi-bin">
Service fn="send-cgi"
</Object>

mercurial