diff options
author | Rich Bowen <rbowen@apache.org> | 2010-04-26 13:11:56 +0000 |
---|---|---|
committer | Rich Bowen <rbowen@apache.org> | 2010-04-26 13:11:56 +0000 |
commit | 72e35ecc7ac7593f367a8a3b447546f5add17af4 (patch) | |
tree | 22ca655c4ab63a540cfc9e9c9bafe993cbc87088 /docs/manual/rewrite/avoid.xml | |
parent | 19cb30c7cf7789ab2e1e14e1db0a2f9522d2412d (diff) | |
download | httpd-72e35ecc7ac7593f367a8a3b447546f5add17af4.tar.gz |
Adds another section to the 'avoiding mod_rewrite' doc.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@938031 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/rewrite/avoid.xml')
-rw-r--r-- | docs/manual/rewrite/avoid.xml | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/docs/manual/rewrite/avoid.xml b/docs/manual/rewrite/avoid.xml index db2bb25369..f32fbda8cf 100644 --- a/docs/manual/rewrite/avoid.xml +++ b/docs/manual/rewrite/avoid.xml @@ -87,7 +87,7 @@ and <code>/one/three/four.html</code>.</p> Redirect /one/ http://one.example.com/ </example> -<p>To redirect <code>http</code> URLs to <code>https</code>, do the +<p id="http2https">To redirect <code>http</code> URLs to <code>https</code>, do the following:</p> <example> @@ -118,7 +118,27 @@ task in a <code>.htaccess</code> file instead.</p> </section> <section id="alias"><title>URL Aliasing</title> -<p>Using Alias</p> +<p>The <directive module="mod_alias">Alias</directive> directive +provides mapping from a URI to a directory - usually a directory outside +of your <directive module="core">DocumentRoot</directive>. Although it +is possible to perform this mappint with <code>mod_rewrite</code>, +<code>Alias</code> is the preferred method, for reasons of simplicity +and performance.</p> + +<example><title>Using Alias</title> +Alias /cats /var/www/virtualhosts/felines/htdocs +</example> + +<p> +The use of <code>mod_rewrite</code> to perform this mapping may be +appropriate when you do not have access to the server configuration +files. Alias may only be used in server or virtualhost context, and not +in a <code>.htaccess</code> file. +</p> + +<p>Symbolic links would be another way to accomplish the same thing, if +you have <code>Options FollowSymLinks</code> enabled on your +server.</p> </section> <section id="vhosts"><title>Virtual Hosting</title> |