diff options
author | Ken Coar <coar@apache.org> | 2015-04-15 20:04:39 +0200 |
---|---|---|
committer | Ken Coar <coar@apache.org> | 2015-04-15 20:04:39 +0200 |
commit | b75f3c1fdf2181917781cc952d50d1abc3ab3900 (patch) | |
tree | ae07faca9dca082893707b88cd631cd2dbf9c6a0 /docs/manual/urlmapping.xml | |
parent | Enclose parameters in quotation marks for <{Files,Directory,Location}{,Match}> (diff) | |
download | apache2-b75f3c1fdf2181917781cc952d50d1abc3ab3900.tar.xz apache2-b75f3c1fdf2181917781cc952d50d1abc3ab3900.zip |
Quote {Alias,Redirect,ScriptAlias}{,Match} arguments.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673908 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/urlmapping.xml')
-rw-r--r-- | docs/manual/urlmapping.xml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/manual/urlmapping.xml b/docs/manual/urlmapping.xml index 71cdad84d6..a59c568cc1 100644 --- a/docs/manual/urlmapping.xml +++ b/docs/manual/urlmapping.xml @@ -139,7 +139,9 @@ module="mod_alias">Alias</directive> directive will map any part of the filesystem into the web space. For example, with</p> -<highlight language="config">Alias /docs /var/web</highlight> + <highlight language="config"> +Alias "/docs" "/var/web" + </highlight> <p>the URL <code>http://www.example.com/docs/dir/file.html</code> will be served from <code>/var/web/dir/file.html</code>. The @@ -156,7 +158,7 @@ example,</p> <highlight language="config"> - ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+) /home/$1/cgi-bin/$2 +ScriptAliasMatch "^/~([a-zA-Z0-9]+)/cgi-bin/(.+)" "/home/$1/cgi-bin/$2" </highlight> <p>will map a request to @@ -204,7 +206,7 @@ <code>AliasMatch</code> directive:</p> <highlight language="config"> - AliasMatch ^/upages/([a-zA-Z0-9]+)(/(.*))?$ /home/$1/public_html/$3 +AliasMatch "^/upages/([a-zA-Z0-9]+)(/(.*))?$" "/home/$1/public_html/$3" </highlight> </section> @@ -224,7 +226,7 @@ to request the content at the new location as follows:</p> <highlight language="config"> - Redirect permanent /foo/ http://www.example.com/bar/ +Redirect permanent "/foo/" "http://www.example.com/bar/" </highlight> <p>This will redirect any URL-Path starting in @@ -240,14 +242,14 @@ requests alone, use the following configuration:</p> <highlight language="config"> - RedirectMatch permanent ^/$ http://www.example.com/startpage.html +RedirectMatch permanent "^/$" "http://www.example.com/startpage.html" </highlight> <p>Alternatively, to temporarily redirect all pages on one site to a particular page on another site, use the following:</p> <highlight language="config"> - RedirectMatch temp .* http://othersite.example.com/startpage.html +RedirectMatch temp ".*" "http://othersite.example.com/startpage.html" </highlight> </section> |