diff options
Diffstat (limited to 'www/hiawatha/files/hiawatha.cfg')
-rw-r--r-- | www/hiawatha/files/hiawatha.cfg | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/www/hiawatha/files/hiawatha.cfg b/www/hiawatha/files/hiawatha.cfg new file mode 100644 index 00000000000..389b1069bef --- /dev/null +++ b/www/hiawatha/files/hiawatha.cfg @@ -0,0 +1,43 @@ +<!-- + 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> |