pkgsrc/www/hiawatha/files/hiawatha.cfg
jwise 0ba22eed8c Initial import of hiawatha-0.1, a barebones HTTP server with XML/XSLT
support.

From pkg/DESCR:

Hiawatha is a standalone webserver with build-in support for XML,
XSL, XSLScript, HTTP, and CGI (GET and POST). Hiawatha is written
in Java and it is Open Source ( and 100% free ).
2001-04-15 02:56:38 +00:00

43 lines
1.1 KiB
INI

<!--
Hiawatha Web-Server. 2000 (c) Paul Tchistopolskii.
http://www.pault.com
Simple Hiawatha config. See also pault_com.cfg.
-->
<config>
<PORT> 8080 </PORT>
<WORKERS> 10 </WORKERS>
<RELOAD-CONFIG> true </RELOAD-CONFIG>
<DEBUG> true </DEBUG>
<LOG dest="#file"> /var/log/hiawatha.log </LOG>
<CONST name="R"> @PREFIX@/share/examples/hiawatha/WEBROOT </CONST>
<RULE url="*/*.gif" action="#dump" mime="image/gif"> $R$/images/$2$.gif </RULE>
<RULE url="*/*.jpg" action="#dump" mime="image/jpeg"> $R$/images/$2$.jpg </RULE>
<RULE url="*/*.css" action="#dump" mime="text/css"> $R$/css/$2$.css </RULE>
<RULE url="*.html" action="#dump" mime="text/html"> $R$$0$ </RULE>
<RULE url="/plain*.xml" action="#xsl" mime="text/html">
$R$$1$-plain $R$$1$.xml
</RULE>
<RULE url="/plain*" action="#xsl" mime="text/html">
$R$$1$/index-plain $R$$1$/index.xml
</RULE>
<RULE url="*.xml*" action="#xsl" param="$2$" mime="text/html">
$R$$1$ $R$$1$.xml
</RULE>
<RULE url="*" action="#xsl" mime="text/html">
$R$$1$/index $R$$1$/index.xml
</RULE>
<PERM prefix="$R$" access="#allow"/>
</config>