summaryrefslogtreecommitdiffstats
path: root/docs/manual/mod/mod_alias.xml
diff options
context:
space:
mode:
authorKen Coar <coar@apache.org>2015-04-15 19:46:53 +0200
committerKen Coar <coar@apache.org>2015-04-15 19:46:53 +0200
commit57ef10245b3cf962dcbe40d205d94c241bed7f0e (patch)
tree596b4aacaa742456ddd5a457f712481ae85dffc2 /docs/manual/mod/mod_alias.xml
parentMention which indexoptions need fancyindexing. Rsesolves bz56985 (diff)
downloadapache2-57ef10245b3cf962dcbe40d205d94c241bed7f0e.tar.xz
apache2-57ef10245b3cf962dcbe40d205d94c241bed7f0e.zip
Enclose parameters in quotation marks for <{Files,Directory,Location}{,Match}>
containers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673892 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_alias.xml')
-rw-r--r--docs/manual/mod/mod_alias.xml20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/manual/mod/mod_alias.xml b/docs/manual/mod/mod_alias.xml
index b4e2711c04..d6572d4395 100644
--- a/docs/manual/mod/mod_alias.xml
+++ b/docs/manual/mod/mod_alias.xml
@@ -170,7 +170,7 @@ Alias /foo /gaq
<highlight language="config">
Alias /image /ftp/pub/image
-&lt;Directory /ftp/pub/image&gt;
+&lt;Directory "/ftp/pub/image"&gt;
Require all granted
&lt;/Directory&gt;
</highlight>
@@ -185,10 +185,10 @@ Alias /image /ftp/pub/image
using <a href="../expr.html">expression syntax</a>.</p>
<highlight language="config">
-&lt;Location /image&gt;
+&lt;Location "/image"&gt;
Alias /ftp/pub/image
&lt;/Location&gt;
-&lt;LocationMatch /error/(?&lt;NUMBER&gt;[0-9]+)&gt;
+&lt;LocationMatch "/error/(?&lt;NUMBER&gt;[0-9]+)"&gt;
Alias /usr/local/apache/errors/%{env:MATCH_NUMBER}.html
&lt;/LocationMatch&gt;
</highlight>
@@ -393,13 +393,13 @@ Redirect 303 /three http://example.com/other
interpreted using <a href="../expr.html">expression syntax</a>.</p>
<highlight language="config">
-&lt;Location /one&gt;
+&lt;Location "/one"&gt;
Redirect permanent http://example.com/two
&lt;/Location&gt;<br />
-&lt;Location /three&gt;
+&lt;Location "/three"&gt;
Redirect 303 http://example.com/other
&lt;/Location&gt;<br />
-&lt;LocationMatch /error/(?&lt;NUMBER&gt;[0-9]+)&gt;
+&lt;LocationMatch "/error/(?&lt;NUMBER&gt;[0-9]+)"&gt;
Redirect permanent http://example.com/errors/%{env:MATCH_NUMBER}.html
&lt;/LocationMatch&gt;<br />
</highlight>
@@ -506,7 +506,7 @@ target as a CGI script</description>
is essentially equivalent to:</p>
<highlight language="config">
Alias /cgi-bin/ /web/cgi-bin/
-&lt;Location /cgi-bin &gt;
+&lt;Location "/cgi-bin" &gt;
SetHandler cgi-script
Options +ExecCGI
&lt;/Location&gt;
@@ -537,7 +537,7 @@ Alias /cgi-bin/ /web/cgi-bin/
module="core">SetHandler</directive>, and <directive
module="core">Options</directive> as in:
<highlight language="config">
-&lt;Directory /usr/local/apache2/htdocs/cgi-bin &gt;
+&lt;Directory "/usr/local/apache2/htdocs/cgi-bin"&gt;
SetHandler cgi-script
Options ExecCGI
&lt;/Directory&gt;
@@ -555,10 +555,10 @@ Alias /cgi-bin/ /web/cgi-bin/
interpreted using <a href="../expr.html">expression syntax</a>.</p>
<highlight language="config">
-&lt;Location /cgi-bin &gt;
+&lt;Location "/cgi-bin"&gt;
ScriptAlias /web/cgi-bin/
&lt;/Location&gt;
-&lt;LocationMatch /cgi-bin/errors/(?&lt;NUMBER&gt;[0-9]+)&gt;
+&lt;LocationMatch "/cgi-bin/errors/(?&lt;NUMBER&gt;[0-9]+)"&gt;
ScriptAlias /web/cgi-bin/errors/%{env:MATCH_NUMBER}.cgi
&lt;/LocationMatch&gt;<br />
</highlight>