Commit | Line | Data |
---|---|---|
d441e69f AC |
1 | {{Per-directory options for Apache}} |
2 | ||
3 | extern type apache_option; | |
5f033db2 | 4 | {{See <a href="http://httpd.apache.org/docs/2.2/mod/core.html#options">the |
d441e69f AC |
5 | Apache documentation</a> for what the options mean.}} |
6 | ||
7 | extern val execCGI : apache_option; | |
22eaa950 | 8 | extern val followSymLinks : apache_option; |
d441e69f AC |
9 | extern val includesNOEXEC : apache_option; |
10 | extern val indexes : apache_option; | |
c6923cdb | 11 | extern val multiViews : apache_option; |
d441e69f AC |
12 | |
13 | extern val options : [apache_option] -> [^Vhost]; | |
14 | {{Declare exactly the set of options in effect for the current scope.}} | |
15 | ||
16 | extern val set_options : [apache_option] -> [^Vhost]; | |
17 | extern val unset_options : [apache_option] -> [^Vhost]; | |
18 | {{Specify some options to be set or unset, leaving the rest as they are.}} | |
19 | ||
edd38024 AC |
20 | extern val directoryIndex : [no_spaces] -> [^Vhost]; |
21 | {{Give the list of filenames to try for the default page of a directory, to be | |
22 | considered in the order given.}} | |
7f012ffd | 23 | |
129d3b57 CE |
24 | extern val directorySlash : bool -> [^Vhost]; |
25 | {{Determine whether Apache should redirect requests for directories | |
26 | lacking a trailing slash to include the trailing slash. Enabled by | |
27 | default, and should only be disabled if you know what you are doing. | |
28 | See the <a | |
29 | href="https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryslash">Apache | |
30 | documentation for the security implications</a> of disabling the | |
31 | redirection.}} | |
32 | ||
7f012ffd AC |
33 | extern val forceType : no_spaces -> [Location]; |
34 | extern val forceTypeOff : [Location]; | |
35 | {{Force all files in the current directory to be served with the given MIME | |
36 | type.}} | |
37 | ||
38 | extern val action : no_spaces -> location -> [^Vhost]; | |
5f033db2 | 39 | {{See <a href="http://httpd.apache.org/docs/2.2/mod/mod_actions.html#action">the |
7f012ffd AC |
40 | Apache documentation</a>.}} |
41 | ||
42 | extern val addDefaultCharset : no_spaces -> [^Vhost]; | |
5f033db2 | 43 | {{See <a href="http://httpd.apache.org/docs/2.2/mod/core.html#adddefaultcharset">the |
7f012ffd | 44 | Apache documentation</a>.}} |
781ebc11 AC |
45 | |
46 | extern type file_extension; | |
47 | extern val cgiExtension : file_extension -> [^Vhost]; | |
48 | {{Ask for all files ending in a particular extension to be executed as CGI.}} | |
e2166ae8 CE |
49 | |
50 | extern val allowEncodedSlashes : bool -> [Vhost]; | |
6a01f003 | 51 | {{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.}} |