apache: support mod_dir DirectorySlash
[hcoop/domtool2.git] / lib / apache_options.dtl
index 279348b..f304f13 100644 (file)
@@ -21,6 +21,15 @@ extern val directoryIndex : [no_spaces] -> [^Vhost];
 {{Give the list of filenames to try for the default page of a directory, to be
   considered in the order given.}}
 
+extern val directorySlash : bool -> [^Vhost];
+{{Determine whether Apache should redirect requests for directories
+  lacking a trailing slash to include the trailing slash. Enabled by
+  default, and should only be disabled if you know what you are doing.
+  See the <a
+  href="https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryslash">Apache
+  documentation for the security implications</a> of disabling the
+  redirection.}}
+
 extern val forceType : no_spaces -> [Location];
 extern val forceTypeOff : [Location];
 {{Force all files in the current directory to be served with the given MIME
@@ -39,4 +48,4 @@ extern val cgiExtension : file_extension -> [^Vhost];
 {{Ask for all files ending in a particular extension to be executed as CGI.}}
 
 extern val allowEncodedSlashes : bool -> [Vhost];
-{{Enable or disable <a href="https://httpd.apache.org/docs/2.2/mod/core.html#allowencodedslashes">encoded lashes</a>. Default is false, true sets <code>NoDecode</code>, full decoding is insecure and unsupported.}}
\ No newline at end of file
+{{Enable or disable <a href="https://httpd.apache.org/docs/2.2/mod/core.html#allowencodedslashes">encoded slashes</a>. Default is false, true sets <code>NoDecode</code>, full decoding is insecure and unsupported.}}
\ No newline at end of file