URL handling
[hcoop/domtool2.git] / tests / testApache.dtl
CommitLineData
8a7c40fa
AC
1domain "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
10 end;
11
12 vhost "members" where
13 SSL = true
14 with
f8dfbbcc 15 localProxyRewrite "^/(.*)$" "$1" 6666;
e95a129e
AC
16 rewriteCond "hi" "there" [ornext];
17 rewriteRule "^/foo.html" "/bar.html" [redirectWith redir300, nosubreq];
2882ee37
AC
18
19 location "/theMorgue" with
20 rewriteRule "A" "B" [];
21 end
f8dfbbcc 22 end;
8a7c40fa 23
f8dfbbcc 24 vhost "proxy" with
e95a129e
AC
25 proxyPass "/proxyLand" "http://localhost:1234/otherProxyLand";
26 proxyPassReverse "/proxyLand" "http://localhost:1234/otherProxyLand";
2882ee37 27
d5754b53
AC
28 scriptAlias "/cgi-bin/that-script" "/home/adamc/cgi/here-it-is";
29 errorDocument "404" "I just couldn't find it.";
30
2882ee37
AC
31 directory "/home/adamc/thisPlace" with
32 rewriteRule "A" "B" [];
33 end
e95a129e 34 end;
8a7c40fa 35
e95a129e
AC
36 vhost "lists" with
37 proxyPass "/mailman" "http://hcoop.net/cgi-bin/mailman";
d5754b53 38 alias "/doc/mailman" "/home/adamc/mailman"
e95a129e 39 end
8a7c40fa 40end