X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/d441e69fed5d0cb98549b10aa66c2637499021da..71420f8bc34bbe2c76bd368613d4e024072e9817:/tests/testApache.dtl diff --git a/tests/testApache.dtl b/tests/testApache.dtl index ff45dfa..293a21d 100644 --- a/tests/testApache.dtl +++ b/tests/testApache.dtl @@ -6,7 +6,8 @@ domain "hcoop.net" with DocumentRoot = "/home/adamc/html"; ServerAdmin = "adamc@hcoop.net" with - + serverAlias "hcoop.net"; + addDefaultCharset "mumbo-jumbo/incomprehensible" end; vhost "members" where @@ -16,12 +17,16 @@ domain "hcoop.net" with rewriteCond "hi" "there" [ornext]; rewriteRule "^/foo.html" "/bar.html" [redirectWith redir300, nosubreq]; + rewriteLogLevel 2; + location "/theMorgue" with rewriteRule "A" "B" []; end end; vhost "proxy" with + serverAlias "proxy2.hcoop.net"; + proxyPass "/proxyLand" "http://localhost:1234/otherProxyLand"; proxyPassReverse "/proxyLand" "http://localhost:1234/otherProxyLand"; @@ -31,6 +36,8 @@ domain "hcoop.net" with scriptAlias "/cgi-bin/that-script" "/home/adamc/cgi/here-it-is"; errorDocument "404" "I just couldn't find it."; + action "text/plain" "/cgi-bin/display"; + directory "/home/adamc/thisPlace" with rewriteRule "A" "B" []; unset_options [includesNOEXEC]; @@ -39,6 +46,48 @@ domain "hcoop.net" with vhost "lists" with proxyPass "/mailman" "http://hcoop.net/cgi-bin/mailman"; - alias "/doc/mailman" "/home/adamc/mailman" - end + proxyPass "/pipermail" "http://hcoop.net/pipermail"; + alias "/doc/mailman" "/home/adamc/mailman"; + + location "/the-citadel" with + forceTypeOff; + end; + + directoryIndex ["index.sml", "index.h", "index.v"] + end; + + vhost "secret" with + location "/" with + authType basic; + authName "Herman the skunk"; + authUserFile "/home/adamc/passwds"; + + requireValidUser; + requireUser ["freddy", "flicky"]; + requireGroup ["awesome"]; + + forceType "text/html"; + + orderDenyAllow; + satisfyAny + end + end; + + vhost "svn" with + location "/" with + davSvn "/home/adamc/svn"; + authzSvnAccessFile "/home/adamc/svn/acl"; + end; + + addDescription "nada" []; + addDescription "Ultimate \"Awesome\" file" ["awesome.txt"]; + addDescription "Runners up" ["prettyNeat.txt", "somewhatFunky.odp"]; + + indexOptions [iconsAreLinks, scanHtmlTitles, iconWidth 45]; + set_indexOptions [descriptionWidth autofit, nameWidth (characters 13)]; + unset_indexOptions [iconHeight 32, fancyIndexing]; + + headerName "header.html"; + readmeName "readme.txt" + end; end