apache: support mod_dir DirectorySlash
[hcoop/domtool2.git] / src / plugins / apache.sml
index a57ca9e..20bd7ed 100644 (file)
@@ -1,6 +1,6 @@
 (* HCoop Domtool (http://hcoop.sourceforge.net/)
  * Copyright (c) 2006-2009, Adam Chlipala
- * Copyright (c) 2013 Clinton Ebadi
+ * Copyright (c) 2013,2014,2015,2017,2018,2019 Clinton Ebadi
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -887,6 +887,13 @@ val () = Env.action_one "directoryIndex"
              app (fn opt => (write " "; write opt)) opts;
              write "\n"))
 
+val () = Env.action_one "directorySlash"
+       ("enable", Env.bool)
+       (fn enable =>
+           (write "\tDirectorySlash ";
+            if enable then write "On" else write "Off";
+            write "\n"))
+
 val () = Env.action_one "serverAliasHost"
         ("host", Env.string)
         (fn host =>
@@ -1167,7 +1174,7 @@ val () = Env.action_three "setEnvIfNoCase"
             case envs of
                 [] => (print "WARNING: Skipped setEnvIfNoCase, no environment variables provided.\n")
              | envs =>
-               (write "\tSetEnvIf\t\"";
+               (write "\tSetEnvIfNoCase\t\"";
                 write attribute;
                 write "\"\t\"";
                 write match;