Add to git.
[rws.git] / conf / default.in
1 # Example ``/etc/rws/hosts/<<HOSTNAME>>'' configuration file. You
2 # need one of these files for every virtual host you serve (although
3 # you can use symbolic links to save time) plus one file called ``default''
4 # which is used for when the client doesn't send a ``Host:'' HTTP header.
5
6 # The document root.
7
8 alias /
9         # Path to the document root.
10         path:           @pkgdatadir@/html
11
12         # Allow files to be viewed.
13         show:           1
14
15         # Do directory listings.
16         list:           1
17 end alias
18
19 # Example CGI directory.
20
21 alias /cgi-bin/
22
23         path:           /path/to/cgi/scripts
24
25         # Allow CGI scripts to be executed in here. Note that
26         # show and list are both off by default.
27
28         exec:           1
29
30 end alias
31
32 # Example shared object scripts directory (see doc/index.html).
33
34 alias /so-bin/
35
36         path:           @pkgdatadir@/so-bin
37
38         # Allow shared object scripts to be executed in here. Note
39         # that show and list are both of by default.
40
41         exec so:        1
42
43 end alias
44
45 # For Monolith, you need these aliases.
46
47 alias /ml-styles/
48         path:           @pkgdatadir@/ml-styles
49         show:           1
50 end alias
51
52 alias /ml-icons/
53         path:           @pkgdatadir@/ml-icons
54         show:           1
55 end alias
56
57 # Rewrite rules applying to this host.
58
59 begin rewrite
60
61 # Rules apply in order. Use 'last' flag on a rule to cause execution
62 # to finish at that rule if it matches.
63
64 # Simple rewrite rule (external: the browser gets a redirect instruction).
65 #^/default.html$ /index.html   external
66
67 # Simple rewrite rule (internal: browser is unaware of the redirect).
68 #^/default.html$ /index.html
69
70 # Monolith parsed pages (demonstrating the use of $1, $2, ... placeholders).
71 # 'qsa' appends the original query string (if any) to the end of the
72 # rewritten URL.
73 #^/annexia/(.*\.msp)$    /so-bin/msp.so?page=$1  last,qsa
74 #^/annexia/$             /annexia/index.msp      qsa,external
75 #^/annexia/(.*)/$        /annexia/$1/index.msp   qsa,external
76
77 # Conditional rewrite rules are not yet implemented.
78
79 end rewrite
80
81 # msp root: /home/rich/annexia
82 # msp database: dbname=rich
83 # monolith user database: dbname=rich
84 # chatbot database: dbname=rich