
rbowen at apache
Nov 4, 2009, 5:16 PM
Post #1 of 1
(53 views)
Permalink
|
|
svn commit: r832952 - in /httpd/httpd/trunk/docs/manual/rewrite: rewrite_guide.html.en rewrite_guide.xml
|
|
Author: rbowen Date: Thu Nov 5 01:16:47 2009 New Revision: 832952 URL: http://svn.apache.org/viewvc?rev=832952&view=rev Log: Removing this rule entirely, because it's not meaningful. It relies on REMOTE_IDENT. Browsers stopped sending REMOTE_IDENT 15 years ago, and even when they did, it wasn't trustworthy. Modified: httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.html.en httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml Modified: httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.html.en?rev=832952&r1=832951&r2=832952&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.html.en (original) +++ httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.html.en Thu Nov 5 01:16:47 2009 @@ -62,7 +62,6 @@ <li><img alt="" src="../images/down.gif" /> <a href="#autorefresh">Document With Autorefresh</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#mass-virtual-hosting">Mass Virtual Hosting</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#proxy-deny">Proxy Deny</a></li> -<li><img alt="" src="../images/down.gif" /> <a href="#special-authentication">Special Authentication Variant</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#referer-deflector">Referer-based Deflector</a></li> </ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite @@ -1246,38 +1245,6 @@ </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> -<h2><a name="special-authentication" id="special-authentication">Special Authentication Variant</a></h2> - - - - <dl> - <dt>Description:</dt> - - <dd> - <p>Sometimes very special authentication is needed, for - instance authentication which checks for a set of - explicitly configured users. Only these should receive - access and without explicit prompting (which would occur - when using Basic Auth via <code class="module"><a href="../mod/mod_auth_basic.html">mod_auth_basic</a></code>).</p> - </dd> - - <dt>Solution:</dt> - - <dd> - <p>We use a list of rewrite conditions to exclude all except - our friends:</p> - -<div class="example"><pre> -RewriteCond %{REMOTE_IDENT}@%{REMOTE_HOST} <strong>!^friend1[at]client1.quux-corp\.com$</strong> -RewriteCond %{REMOTE_IDENT}@%{REMOTE_HOST} <strong>!^friend2</strong>@client2.quux-corp\.com$ -RewriteCond %{REMOTE_IDENT}@%{REMOTE_HOST} <strong>!^friend3</strong>@client3.quux-corp\.com$ -RewriteRule ^/~quux/only-for-friends/ - [F] -</pre></div> - </dd> - </dl> - - </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> -<div class="section"> <h2><a name="referer-deflector" id="referer-deflector">Referer-based Deflector</a></h2> Modified: httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml?rev=832952&r1=832951&r2=832952&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml (original) +++ httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml Thu Nov 5 01:16:47 2009 @@ -1238,38 +1238,6 @@ </section> - <section id="special-authentication"> - - <title>Special Authentication Variant</title> - - <dl> - <dt>Description:</dt> - - <dd> - <p>Sometimes very special authentication is needed, for - instance authentication which checks for a set of - explicitly configured users. Only these should receive - access and without explicit prompting (which would occur - when using Basic Auth via <module>mod_auth_basic</module>).</p> - </dd> - - <dt>Solution:</dt> - - <dd> - <p>We use a list of rewrite conditions to exclude all except - our friends:</p> - -<example><pre> -RewriteCond %{REMOTE_IDENT}@%{REMOTE_HOST} <strong>!^friend1[at]client1.quux-corp\.com$</strong> -RewriteCond %{REMOTE_IDENT}@%{REMOTE_HOST} <strong>!^friend2</strong>@client2.quux-corp\.com$ -RewriteCond %{REMOTE_IDENT}@%{REMOTE_HOST} <strong>!^friend3</strong>@client3.quux-corp\.com$ -RewriteRule ^/~quux/only-for-friends/ - [F] -</pre></example> - </dd> - </dl> - - </section> - <section id="referer-deflector"> <title>Referer-based Deflector</title>
|