httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r1335862 - /httpd/httpd/branches/2.4.x/docs/manual/rewrite/access.xml
Date Wed, 09 May 2012 00:39:15 GMT
Author: rbowen
Date: Wed May  9 00:39:15 2012
New Revision: 1335862

URL: http://svn.apache.org/viewvc?rev=1335862&view=rev
Log:
Remove superfluous HTML that's interfering with syntax highlighting.

Modified:
    httpd/httpd/branches/2.4.x/docs/manual/rewrite/access.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/access.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/rewrite/access.xml?rev=1335862&r1=1335861&r2=1335862&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/access.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/access.xml Wed May  9 00:39:15 2012
@@ -84,27 +84,27 @@ configuration.</note>
 <!-- TODO: Add discussion here of why we have !^$ in there. -->
 
 <highlight language="config">
-RewriteCond %{HTTP_REFERER} <strong>!^$</strong>
+RewriteCond %{HTTP_REFERER} !^$
 RewriteCond %{HTTP_REFERER} !www.example.com [NC]
-RewriteRule <strong>\.(gif|jpg|png)$</strong>    -   [F,NC]
+RewriteRule \.(gif|jpg|png)$    -   [F,NC]
 </highlight>
 
     <p>In this second example, instead of failing the request, we display
     an alternate image instead.</p>
 
 <highlight language="config">
-RewriteCond %{HTTP_REFERER} <strong>!^$</strong>
+RewriteCond %{HTTP_REFERER} !^$
 RewriteCond %{HTTP_REFERER} !www.example.com [NC]
-RewriteRule <strong>\.(gif|jpg|png)$</strong>    /images/go-away.png   [R,NC]
+RewriteRule \.(gif|jpg|png)$    /images/go-away.png   [R,NC]
 </highlight>
 
     <p>In the third example, we redirect the request to an image on some
     other site.</p>
 
 <highlight language="config">
-RewriteCond %{HTTP_REFERER} <strong>!^$</strong>
+RewriteCond %{HTTP_REFERER} !^$
 RewriteCond %{HTTP_REFERER} !www.example.com [NC]
-RewriteRule <strong>\.(gif|jpg|png)$</strong> http://other.example.com/image.gif
  [R,NC]
+RewriteRule \.(gif|jpg|png)$ http://other.example.com/image.gif   [R,NC]
 </highlight>
 
     <p>Of these techniques, the last two tend to be the most effective
@@ -171,9 +171,9 @@ SetEnvIf Referer example\.com localrefer
         particular source.</p>
 
 <highlight language="config">
-RewriteCond %{HTTP_USER_AGENT}   ^<strong>NameOfBadRobot</strong>
-RewriteCond %{REMOTE_ADDR}       =<strong>123\.45\.67\.[8-9]</strong>
-RewriteRule ^<strong>/secret/files/</strong>   -   [<strong>F</strong>]
+RewriteCond %{HTTP_USER_AGENT}   ^NameOfBadRobot
+RewriteCond %{REMOTE_ADDR}       =123\.45\.67\.[8-9]
+RewriteRule ^/secret/files/   -   [F]
 </highlight>
         </dd>
 



Mime
View raw message