httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r938031 - in /httpd/httpd/trunk/docs/manual/rewrite: avoid.html.en avoid.xml
Date Mon, 26 Apr 2010 13:11:57 GMT
Author: rbowen
Date: Mon Apr 26 13:11:56 2010
New Revision: 938031

URL: http://svn.apache.org/viewvc?rev=938031&view=rev
Log:
Adds another section to the 'avoiding mod_rewrite' doc.

Modified:
    httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en
    httpd/httpd/trunk/docs/manual/rewrite/avoid.xml

Modified: httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en?rev=938031&r1=938030&r2=938031&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en Mon Apr 26 13:11:56 2010
@@ -78,7 +78,7 @@ and <code>/one/three/four.html</code>.</
 Redirect /one/ http://one.example.com/
 </code></p></div>
 
-<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>
 
 <div class="example"><p><code>
@@ -109,7 +109,27 @@ task in a <code>.htaccess</code> file in
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div>
 <div class="section">
 <h2><a name="alias" id="alias">URL Aliasing</a></h2>
-<p>Using Alias</p>
+<p>The <code class="directive"><a href="../mod/mod_alias.html#alias">Alias</a></code>
directive
+provides mapping from a URI to a directory - usually a directory outside
+of your <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>.
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>
+
+<div class="example"><h3>Using Alias</h3><p><code>
+Alias /cats /var/www/virtualhosts/felines/htdocs
+</code></p></div>
+
+<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>
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div>
 <div class="section">
 <h2><a name="vhosts" id="vhosts">Virtual Hosting</a></h2>

Modified: httpd/httpd/trunk/docs/manual/rewrite/avoid.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/avoid.xml?rev=938031&r1=938030&r2=938031&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/avoid.xml (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/avoid.xml Mon Apr 26 13:11:56 2010
@@ -87,7 +87,7 @@ and <code>/one/three/four.html</code>.</
 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 in
 </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>



Mime
View raw message