<directive module="mod_setenvif">SetEnvIf</directive> and <directive
module="mod_rewrite">RewriteCond</directive> will not see the
variables set with it.</li>
-
- <li>When the server looks up a path via an internal
- <glossary ref="subrequest">subrequest</glossary> such as looking
- for a <directive module="mod_dir" >DirectoryIndex</directive>
+
+ <li>When the server looks up a path via an internal
+ <glossary ref="subrequest">subrequest</glossary> such as looking
+ for a <directive module="mod_dir" >DirectoryIndex</directive>
or generating a directory listing with <module>mod_autoindex</module>,
per-request environment variables are <em>not</em> inherited in the
subrequest. Additionally,
<directivelist>
<directive module="mod_authz_core">Require</directive>
<directive module="mod_log_config">CustomLog</directive>
+ <directive module="mod_access_compat">Allow</directive>
<directive module="mod_access_compat">Deny</directive>
<directive module="mod_ext_filter">ExtFilterDefine</directive>
<directive module="mod_headers">Header</directive>
<section id="access-control">
<title>Access Control</title>
- <p>Access to the server can be controlled based on the value of
- environment variables using the <code>allow from env=</code>
- and <code>deny from env=</code> directives. In combination with
+ <p>Access to the server can be controlled based on
+ environment variables using the <code>Require env</code>
+ and <code>Require not env</code> directives. In combination with
<directive module="mod_setenvif">SetEnvIf</directive>, this
allows for flexible control of access to the server based on
characteristics of the client. For example, you can use these
these headers:</p>
<highlight language="config">
-#
+#
# The following works around a client sending a broken Accept_Encoding
# header.
#
SetEnvIf Request_URI \.gif image-request
SetEnvIf Request_URI \.jpg image-request
SetEnvIf Request_URI \.png image-request
-CustomLog logs/access_log common env=!image-request
+CustomLog "logs/access_log" common env=!image-request
</highlight>
</section>