Disentangle vmail from the mail node, Prepare for dovecot support
[hcoop/domtool2.git] / tests / testApache.dtl
1 domain "hcoop.net" with
2
3 vhost "www" where
4 User = "adamc";
5 Group = "adamc";
6 DocumentRoot = "/home/adamc/html";
7 ServerAdmin = "adamc@hcoop.net"
8 with
9 serverAlias "hcoop.net";
10 addDefaultCharset "mumbo-jumbo/incomprehensible"
11 end;
12
13 vhost "members" where
14 SSL = true
15 with
16 localProxyRewrite "^/(.*)$" "$1" 6666;
17 rewriteCond "hi" "there" [ornext];
18 rewriteRule "^/foo.html" "/bar.html" [redirectWith redir300, nosubreq];
19
20 rewriteLogLevel 2;
21
22 location "/theMorgue" with
23 rewriteRule "A" "B" [];
24 end
25 end;
26
27 vhost "proxy" with
28 serverAlias "proxy2.hcoop.net";
29
30 proxyPass "/proxyLand" "http://localhost:1234/otherProxyLand";
31 proxyPassReverse "/proxyLand" "http://localhost:1234/otherProxyLand";
32
33 options [execCGI];
34 set_options [execCGI, indexes];
35
36 scriptAlias "/cgi-bin/that-script" "/home/adamc/cgi/here-it-is";
37 errorDocument "404" "I just couldn't find it.";
38
39 action "text/plain" "/cgi-bin/display";
40
41 directory "/home/adamc/thisPlace" with
42 rewriteRule "A" "B" [];
43 unset_options [includesNOEXEC];
44 end
45 end;
46
47 vhost "lists" with
48 proxyPass "/mailman" "http://hcoop.net/cgi-bin/mailman";
49 proxyPass "/pipermail" "http://hcoop.net/pipermail";
50 alias "/doc/mailman" "/home/adamc/mailman";
51
52 location "/the-citadel" with
53 forceTypeOff;
54 end;
55
56 directoryIndex ["index.sml", "index.h", "index.v"]
57 end;
58
59 vhost "secret" with
60 location "/" with
61 authType basic;
62 authName "Herman the skunk";
63 authUserFile "/home/adamc/passwds";
64
65 requireValidUser;
66 requireUser ["freddy", "flicky"];
67 requireGroup ["awesome"];
68
69 forceType "text/html";
70
71 orderDenyAllow;
72 satisfyAny
73 end
74 end;
75
76 vhost "svn" with
77 location "/" with
78 davSvn "/home/adamc/svn";
79 authzSvnAccessFile "/home/adamc/svn/acl";
80 end;
81
82 addDescription "nada" [];
83 addDescription "Ultimate \"Awesome\" file" ["awesome.txt"];
84 addDescription "Runners up" ["prettyNeat.txt", "somewhatFunky.odp"];
85
86 indexOptions [iconsAreLinks, scanHtmlTitles, iconWidth 45];
87 set_indexOptions [descriptionWidth autofit, nameWidth (characters 13)];
88 unset_indexOptions [iconHeight 32, fancyIndexing];
89
90 headerName "header.html";
91 readmeName "readme.txt"
92 end;
93 end