summaryrefslogtreecommitdiff
path: root/www/hiawatha/files/hiawatha.cfg
blob: 389b1069befed6fa2ad33f4dbc6509613fa60fe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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>