X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/e95a129e304463e78a1e6ebce097a371e048ecc2..c98b57cf26f5174f128602281eac7c496d254011:/tests/testApache.dtl diff --git a/tests/testApache.dtl b/tests/testApache.dtl index 13cbed3..eee8980 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 @@ -15,14 +16,60 @@ domain "hcoop.net" with localProxyRewrite "^/(.*)$" "$1" 6666; 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"; + + options [execCGI]; + set_options [execCGI, indexes]; + + 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]; + end end; vhost "lists" with proxyPass "/mailman" "http://hcoop.net/cgi-bin/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; end