<Directory ~ "^/www/[0-9]{3}">
</Directory>
-</highlight>
+ </highlight>
<p>would match directories in <code>/www/</code> that consisted of
three numbers.</p>
<DirectoryMatch "^/www/(.+/)?[0-9]{3}/">
# ...
</DirectoryMatch>
-</highlight>
+ </highlight>
<p>matches directories in <code>/www/</code> (or any subdirectory thereof)
that consist of three numbers.</p>
<module>mod_rewrite</module>. In order to prevent confusion, numbered
(unnamed) backreferences are ignored. Use named groups instead.</p>
-<highlight language="config">
+ <highlight language="config">
<DirectoryMatch "^/var/www/combined/(?<sitename>[^/]+)">
Require ldap-group cn=%{env:MATCH_SITENAME},ou=combined,o=Example
</DirectoryMatch>
-</highlight>
+ </highlight>
</usage>
<seealso><directive type="section" module="core">Directory</directive> for
a description of how regular expressions are mixed in with normal
<description>Directory that forms the main document tree visible
from the web</description>
<syntax>DocumentRoot <var>directory-path</var></syntax>
-<default>DocumentRoot /usr/local/apache/htdocs</default>
+<default>DocumentRoot "/usr/local/apache/htdocs"</default>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<p>This would result in error messages such as:</p>
- <example>
+ <example>
[Thu May 12 08:28:57.652118 2011] [core:error] [pid 8777:tid 4326490112] [client ::1:58619] File does not exist: /usr/local/apache2/htdocs/favicon.ico
</example>
<Files "?at.*">
# This would apply to cat.html, bat.html, hat.php and so on.
</Files>
-</highlight>
+ </highlight>
<p><glossary ref="regex">Regular expressions</glossary>
can also be used, with the addition of the
<code>~</code> character. For example:</p>
<Files ~ "\.(gif|jpe?g|png)$">
#...
</Files>
-</highlight>
+ </highlight>
<p>would match most common Internet graphics formats. <directive
module="core" type="section">FilesMatch</directive> is preferred,
does. However, it accepts a <glossary ref="regex">regular
expression</glossary>. For example:</p>
-<highlight language="config">
+ <highlight language="config">
<FilesMatch ".+\.(gif|jpe?g|png)$">
# ...
</FilesMatch>
-</highlight>
+ </highlight>
<p>would match most common Internet graphics formats.</p>
<module>mod_rewrite</module>. In order to prevent confusion, numbered
(unnamed) backreferences are ignored. Use named groups instead.</p>
-<highlight language="config">
+ <highlight language="config">
<FilesMatch "^(?<sitename>[^/]+)">
require ldap-group cn=%{env:MATCH_SITENAME},ou=combined,o=Example
</FilesMatch>
-</highlight>
+ </highlight>
</usage>
<seealso><a href="../sections.html">How <Directory>, <Location>
<Location ~ "/(extra|special)/data">
#...
</Location>
-</highlight>
+ </highlight>
<p>would match URLs that contained the substring <code>/extra/data</code>
or <code>/special/data</code>. The directive <directive
<LocationMatch "/(extra|special)/data">
# ...
</LocationMatch>
-</highlight>
+ </highlight>
<p>would match URLs that contained the substring <code>/extra/data</code>
or <code>/special/data</code>.</p>
regular expression with a <code>^</code> to require this.</p>
<highlight language="config">
- <LocationMatch "^/(extra|special)/data">
+<LocationMatch "^/(extra|special)/data">
</highlight>
</note>
<module>mod_rewrite</module>. In order to prevent confusion, numbered
(unnamed) backreferences are ignored. Use named groups instead.</p>
-<highlight language="config">
+ <highlight language="config">
<LocationMatch "^/combined/(?<sitename>[^/]+)">
require ldap-group cn=%{env:MATCH_SITENAME},ou=combined,o=Example
</LocationMatch>
-</highlight>
+ </highlight>
</usage>
<seealso><a href="../sections.html">How <Directory>, <Location>
specify:</p>
<highlight language="config">
- Protocols h2 http/1.1
+Protocols h2 http/1.1
</highlight>
<p>Valid protocols are <code>http/1.1</code> for http and https connections,
by the shebang line (first line, starting with <code>#!</code>) in the
script. On Win32 systems this line usually looks like:</p>
- <highlight language="perl">#!C:/Perl/bin/perl.exe</highlight>
+ <highlight language="perl">
+#!C:/Perl/bin/perl.exe
+ </highlight>
<p>or, if <code>perl</code> is in the <code>PATH</code>, simply:</p>
- <highlight language="perl">#!perl</highlight>
+ <highlight language="perl">
+#!perl
+ </highlight>
<p>Setting <code>ScriptInterpreterSource Registry</code> will
cause the Windows Registry tree <code>HKEY_CLASSES_ROOT</code> to be
<directivesynopsis>
<name>QualifyRedirectURL</name>
-<description>Controls whether the REDIRECT_URL environment variable is
+<description>Controls whether the REDIRECT_URL environment variable is
fully qualified</description>
<syntax>QualifyRedirectURL ON|OFF</syntax>
<default>QualifyRedirectURL OFF</default>