More Apache directory option stuff
[hcoop/domtool2.git] / tests / testApache.dtl
index ff45dfa..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
@@ -22,6 +22,8 @@ domain "hcoop.net" with
        end;
 
        vhost "proxy" with
+               serverAlias "proxy2.hcoop.net";
+
                proxyPass "/proxyLand" "http://localhost:1234/otherProxyLand";
                proxyPassReverse "/proxyLand" "http://localhost:1234/otherProxyLand";
 
@@ -31,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];
@@ -39,6 +43,29 @@ domain "hcoop.net" with
 
        vhost "lists" with
                proxyPass "/mailman" "http://hcoop.net/cgi-bin/mailman";
-               alias "/doc/mailman" "/home/adamc/mailman"
-       end
+               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