More Apache directory option stuff
[hcoop/domtool2.git] / tests / testApache.dtl
index 9c28fcd..e637d69 100644 (file)
@@ -6,7 +6,7 @@ domain "hcoop.net" with
                DocumentRoot = "/home/adamc/html";
                ServerAdmin = "adamc@hcoop.net"
        with
-
+               addDefaultCharset "mumbo-jumbo/incomprehensible"
        end;
 
        vhost "members" where
@@ -33,6 +33,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];
@@ -43,6 +45,27 @@ domain "hcoop.net" with
                proxyPass "/mailman" "http://hcoop.net/cgi-bin/mailman";
                alias "/doc/mailman" "/home/adamc/mailman";
 
+               location "/the-citadel" with
+                       forceTypeOff;
+               end;
+
                directoryIndex ["index.sml", "index.h", "index.v"]
-       end
+       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