]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r657842 and r658546 from trunk:
authorTakashi Sato <takashi@apache.org>
Wed, 21 May 2008 03:43:04 +0000 (03:43 +0000)
committerTakashi Sato <takashi@apache.org>
Wed, 21 May 2008 03:43:04 +0000 (03:43 +0000)
We should not use someone's domains for examples.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@658547 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/howto/public_html.xml
docs/manual/misc/security_tips.xml
docs/manual/mod/core.xml
docs/manual/mod/mod_imagemap.xml
docs/manual/mod/mod_proxy.xml
docs/manual/mod/mod_proxy_balancer.xml
docs/manual/mod/mod_setenvif.xml
docs/manual/mod/mod_status.xml
docs/manual/mod/mod_userdir.xml
docs/manual/mod/mod_usertrack.xml
docs/manual/rewrite/rewrite_guide_advanced.xml

index 3d1fa2542b72b38444d41fe1155efafff36fbfe2..32ab782b9c0c279da23228ced30576fde0484aee 100644 (file)
       used to redirect user directory requests to external URLs.</p>
       
     <example>
-      UserDir http://www.foo.com/users/*/
+      UserDir http://example.org/users/*/
     </example>
     
     <p>The above example will redirect a request for
     <code>http://example.com/~bob/abc.html</code> to
-    <code>http://www.foo.com/users/bob/abc.html</code>.</p>
+    <code>http://example.org/users/bob/abc.html</code>.</p>
   </section>
 
   <section id="enable">
index c833fad93ef3f2663b2a30daf8493536ee604027..fcc3dac6874fdca7b59ae8b7a62192c53bf960c8 100644 (file)
     the second example will list the ten last denied clients, for example:</p>
     
     <example>
-      [Thu Jul 11 17:18:39 2002] [error] [client foo.bar.com] client denied 
+      [Thu Jul 11 17:18:39 2002] [error] [client foo.example.com] client denied 
       by server configuration: /usr/local/apache/htdocs/.htpasswd
     </example>
     
     would have seen something similar to:</p>
     
     <example>
-      foo.bar.com - - [12/Jul/2002:01:59:13 +0200] "GET /.htpasswd HTTP/1.1"
+      foo.example.com - - [12/Jul/2002:01:59:13 +0200] "GET /.htpasswd HTTP/1.1"
     </example>
     
     <p>in your <a href="../logs.html#accesslog">Access Log</a>. This means 
index eb7d3b3e44d6fedeac5a64742cff1d9532018445..3d2ec40e85ca4313c4992877d7c0d9a090facfd0 100644 (file)
@@ -1963,7 +1963,7 @@ URLs</description>
     functionality is especially useful when combined with the
     <directive module="core">SetHandler</directive>
     directive. For example, to enable status requests, but allow them
-    only from browsers at <code>foo.com</code>, you might use:</p>
+    only from browsers at <code>example.com</code>, you might use:</p>
 
     <example>
       &lt;Location /status&gt;<br />
@@ -1971,7 +1971,7 @@ URLs</description>
         SetHandler server-status<br />
         Order Deny,Allow<br />
         Deny from all<br />
-        Allow from .foo.com<br />
+        Allow from .example.com<br />
       </indent>
       &lt;/Location&gt;
     </example>
@@ -3313,11 +3313,11 @@ hostname or IP address</description>
     <example><title>Example</title>
       &lt;VirtualHost 10.1.2.3&gt;<br />
       <indent>
-        ServerAdmin webmaster@host.foo.com<br />
-        DocumentRoot /www/docs/host.foo.com<br />
-        ServerName host.foo.com<br />
-        ErrorLog logs/host.foo.com-error_log<br />
-        TransferLog logs/host.foo.com-access_log<br />
+        ServerAdmin webmaster@host.example.com<br />
+        DocumentRoot /www/docs/host.example.com<br />
+        ServerName host.example.com<br />
+        ErrorLog logs/host.example.com-error_log<br />
+        TransferLog logs/host.example.com-access_log<br />
       </indent>
       &lt;/VirtualHost&gt;
     </example>
index 9fcba6c2b1ecbac37ba621012dfd9d92de826eb3..b65c8352363ff4dea976b759fafddfa7ef3b0cfe 100644 (file)
       generated:</p>
 
       <example>
-        &lt;a href="http://foo.com/"&gt;<var>Menu text</var>&lt;/a&gt;
+        &lt;a href="http://example.com/"&gt;<var>Menu text</var>&lt;/a&gt;
       </example>
 
       <p>If no quoted text is present, the name of the link will be
       used as the text:</p>
 
       <example>
-        &lt;a href="http://foo.com/"&gt;http://foo.com&lt;/a&gt;
+        &lt;a href="http://example.com/"&gt;http://example.com&lt;/a&gt;
       </example>
 
       <p>If you want to use double quotes within this text, you have to
       base referer<br />
       poly map "Could I have a menu, please?" 0,0 0,10 10,10 10,0<br />
       rect .. 0,0 77,27 "the directory of the referer"<br />
-      circle http://www.inetnebr.com/lincoln/feedback/ 195,0 305,27<br />
+      circle http://www.inetnebr.example.com/lincoln/feedback/ 195,0 305,27<br />
       rect another_file "in same directory as referer" 306,0 419,27<br />
-      point http://www.zyzzyva.com/ 100,100<br />
-      point http://www.tripod.com/ 200,200<br />
-      rect mailto:nate@tripod.com 100,150 200,0 "Bugs?"<br />
+      point http://www.zyzzyva.example.com/ 100,100<br />
+      point http://www.tripod.example.com/ 200,200<br />
+      rect mailto:nate@tripod.example.com 100,150 200,0 "Bugs?"<br />
     </example>
 
 </section>
index 46047f4dcf0554a6756fed094bfa409c93ef1618..3ca53ac4e8f920efec6efb3e4e454711db45f46c 100644 (file)
@@ -479,9 +479,9 @@ request</description>
     this module.</p>
 
     <example><title>Example</title>
-      ProxyRemote http://goodguys.com/ http://mirrorguys.com:8000<br />
-      ProxyRemote * http://cleversite.com<br />
-      ProxyRemote ftp http://ftpproxy.mydomain.com:8080
+      ProxyRemote http://goodguys.example.com/ http://mirrorguys.example.com:8000<br />
+      ProxyRemote * http://cleverproxy.localdomain<br />
+      ProxyRemote ftp http://ftpproxy.mydomain:8080
     </example>
 
     <p>In the last example, the proxy will forward FTP requests, encapsulated
@@ -1162,8 +1162,8 @@ directly</description>
     <directive module="mod_proxy">ProxyRemote</directive> proxy server(s).</p>
 
     <example><title>Example</title>
-      ProxyRemote  *  http://firewall.mycompany.com:81<br />
-      NoProxy         .mycompany.com 192.168.112.0/21
+      ProxyRemote  *  http://firewall.example.com:81<br />
+      NoProxy         .example.com 192.168.112.0/21
     </example>
 
     <p>The <var>host</var> arguments to the <directive>NoProxy</directive>
@@ -1190,8 +1190,8 @@ directly</description>
     <note><title>Note</title>
       <p>Domain name comparisons are done without regard to the case, and
       <var>Domain</var>s are always assumed to be anchored in the root of the
-      DNS tree, therefore two domains <code>.MyDomain.com</code> and
-      <code>.mydomain.com.</code> (note the trailing period) are considered
+      DNS tree, therefore two domains <code>.ExAmple.com</code> and
+      <code>.example.com.</code> (note the trailing period) are considered
       equal. Since a domain comparison does not involve a DNS lookup, it is much
       more efficient than subnet comparison.</p>
     </note></dd>
@@ -1248,7 +1248,7 @@ directly</description>
     of hosts with different <var><a href="#ipaddr">IPAddr</a></var>s).</p>
 
     <example><title>Examples</title>
-      prep.ai.mit.edu<br />
+      prep.ai.example.com<br />
       www.apache.org
     </example>
 
@@ -1260,8 +1260,8 @@ directly</description>
       link.</p>
       <p><var>Hostname</var> comparisons are done without regard to the case,
       and <var>Hostname</var>s are always assumed to be anchored in the root
-      of the DNS tree, therefore two hosts <code>WWW.MyDomain.com</code>
-      and <code>www.mydomain.com.</code> (note the trailing period) are
+      of the DNS tree, therefore two hosts <code>WWW.ExAmple.com</code>
+      and <code>www.example.com.</code> (note the trailing period) are
       considered equal.</p>
      </note></dd>
     </dl>
@@ -1302,9 +1302,9 @@ directly</description>
     will be generated.</p>
 
     <example><title>Example</title>
-      ProxyRemote  *  http://firewall.mycompany.com:81<br />
-      NoProxy         .mycompany.com 192.168.112.0/21<br />
-      ProxyDomain     .mycompany.com
+      ProxyRemote  *  http://firewall.example.com:81<br />
+      NoProxy         .example.com 192.168.112.0/21<br />
+      ProxyDomain     .example.com
     </example>
 </usage>
 </directivesynopsis>
index bcd8a438d24fad1153a3f8cf0b8ddbddcd942dfc..7644cd7635977d3efa02b2e86f1a36ac1344ef30 100644 (file)
@@ -338,7 +338,7 @@ candidate lbstatus -= total factor</code></pre>
     <module>mod_status</module> and <module>mod_proxy_balancer</module>
     have to be present in the server.</p>
 
-    <p>To enable load balancer management for browsers from the foo.com
+    <p>To enable load balancer management for browsers from the example.com
     domain add this code to your <code>httpd.conf</code>
     configuration file</p>
 <example>
@@ -347,7 +347,7 @@ candidate lbstatus -= total factor</code></pre>
 <br />
     Order Deny,Allow<br />
     Deny from all<br />
-    Allow from .foo.com<br />
+    Allow from .example.com<br />
     &lt;/Location&gt;
 </example>
 
index db947bfa34e3c0fb77d462a7a4672eb5710abae8..306d3429191458df8b4fbb3c3f1747ce4f4e9329 100644 (file)
@@ -218,7 +218,7 @@ of</p>
    SetEnvIf Request_URI "\.jpg$" object_is_image=jpg<br />
    SetEnvIf Request_URI "\.xbm$" object_is_image=xbm<br />
         :<br />
-   SetEnvIf Referer www\.mydomain\.com intra_site_referral<br />
+   SetEnvIf Referer www\.mydomain\.example\.com intra_site_referral<br />
         :<br />
    SetEnvIf object_is_image xbm XBIT_PROCESSING=1<br />
         :<br />
@@ -229,7 +229,7 @@ of</p>
     <code>object_is_image</code> if the request was for an image
     file, and the fourth sets <code>intra_site_referral</code> if
     the referring page was somewhere on the
-    <code>www.mydomain.com</code> Web site.</p>
+    <code>www.mydomain.example.com</code> Web site.</p>
 
     <p>The last example will set environment variable
     <code>HAVE_TS</code> if the request contains any headers that
index 7aa546bd734021b6f8bad20664c8277f82d81312..99c6841278169af2e9c041ff3e15c4ea38f4ad6a 100644 (file)
@@ -72,7 +72,7 @@ performance</description>
 <section id="enable">
     <title>Enabling Status Support</title>
 
-    <p>To enable status reports only for browsers from the foo.com
+    <p>To enable status reports only for browsers from the example.com
     domain add this code to your <code>httpd.conf</code>
     configuration file</p>
 <example>
@@ -81,7 +81,7 @@ performance</description>
 <br />
     Order Deny,Allow<br />
     Deny from all<br />
-    Allow from .foo.com<br />
+    Allow from .example.com<br />
     &lt;/Location&gt;
 </example>
 
index 650a5593217d64ee9f44d700a5623de71e8de751..71989d0e2a2bc3641fb2128bef597afa4ee7ea7d 100644 (file)
@@ -81,7 +81,7 @@ host</context></contextlist>
     <code>Userdir</code> directive, the argument is treated as a
     filename pattern, and is used to turn the name into a directory
     specification. A request for
-    <code>http://www.foo.com/~bob/one/two.html</code> will be
+    <code>http://www.example.com/~bob/one/two.html</code> will be
     translated to:</p>
 
 <table>
@@ -97,11 +97,11 @@ host</context></contextlist>
 <table>
 <tr><th>UserDir directive used</th>
 <th>Translated path</th></tr>
-<tr><td>UserDir http://www.foo.com/users</td><td>http://www.foo.com/users/bob/one/two.html</td></tr>
+<tr><td>UserDir http://www.example.com/users</td><td>http://www.example.com/users/bob/one/two.html</td></tr>
 <tr><td>UserDir
-http://www.foo.com/*/usr</td><td>http://www.foo.com/bob/usr/one/two.html</td></tr>
+http://www.example.com/*/usr</td><td>http://www.example.com/bob/usr/one/two.html</td></tr>
 <tr><td>UserDir
-http://www.foo.com/~*/</td><td>http://www.foo.com/~bob/one/two.html</td></tr>
+http://www.example.com/~*/</td><td>http://www.example.com/~bob/one/two.html</td></tr>
 </table> 
 
 <note>
@@ -136,12 +136,12 @@ UserDir disabled user4 user5 user6
 <p>It is also possible to specify alternative user directories.
 If you use a command like:</p>
 <example>
-Userdir public_html /usr/web http://www.foo.com/
+Userdir public_html /usr/web http://www.example.com/
 </example>
-<p>With a request for http://www.foo.com/~bob/one/two.html, will try to 
+<p>With a request for http://www.example.com/~bob/one/two.html, will try to 
 find the page at ~bob/public_html/one/two.html first, then
 /usr/web/bob/one/two.html, and finally it will send a redirect
-to http://www.foo.com/bob/one/two.html.</p>
+to http://www.example.com/bob/one/two.html.</p>
 <p>If you add a redirect, it must be the last alternative in the list.
 Apache cannot determine if the redirect succeeded or not, so if you have
 the redirect earlier in the list, that will always be the alternative
index 6ea25a0cbc1882e43d818652b8e8fef57698c9f7..ac5512f120c70ea2428985e291e141f6eb998b6b 100644 (file)
@@ -122,7 +122,7 @@ time late in the year "37".
 
     <p>The domain string <strong>must</strong> begin with a dot, and
     <strong>must</strong> include at least one embedded dot. That is,
-    <code>.foo.com</code> is legal, but <code>foo.bar.com</code> and
+    <code>.example.com</code> is legal, but <code>foo.example.com</code> and 
     <code>.com</code> are not.</p>
 
     <note>Most browsers in use today will not allow cookies to be set
index 5ec114042990381a02d0a5ca19a43a4ce63829b5..81b026deb27cca633f3c590e9aebd2e0e121fda0 100644 (file)
@@ -587,7 +587,7 @@ RewriteRule ^/home/([^/]+)/.www/?(.*) http://<strong>www2</strong>.quux-corp.dom
 
         <dd>
           <p>Suppose we want to load balance the traffic to
-          <code>www.foo.com</code> over <code>www[0-5].foo.com</code>
+          <code>www.example.com</code> over <code>www[0-5].example.com</code>
           (a total of 6 servers). How can this be done?</p>
         </dd>
 
@@ -604,7 +604,7 @@ RewriteRule ^/home/([^/]+)/.www/?(.*) http://<strong>www2</strong>.quux-corp.dom
 
               <p>The simplest method for load-balancing is to use
               DNS round-robin.
-              Here you just configure <code>www[0-9].foo.com</code>
+              Here you just configure <code>www[0-9].example.com</code>
               as usual in your DNS with A (address) records, e.g.,</p>
 
 <example><pre>
@@ -626,15 +626,15 @@ www   IN  A       1.2.3.4
 www   IN  A       1.2.3.5
 </pre></example>
 
-              <p>Now when <code>www.foo.com</code> gets
+              <p>Now when <code>www.example.com</code> gets
               resolved, <code>BIND</code> gives out <code>www0-www5</code>
               - but in a permutated (rotated) order every time.
               This way the clients are spread over the various
               servers. But notice that this is not a perfect load
               balancing scheme, because DNS resolutions are
               cached by clients and other nameservers, so
-              once a client has resolved <code>www.foo.com</code>
-              to a particular <code>wwwN.foo.com</code>, all its
+              once a client has resolved <code>www.example.com</code>
+              to a particular <code>wwwN.example.com</code>, all its
               subsequent requests will continue to go to the same
               IP (and thus a single server), rather than being
               distributed across the other available servers. But the
@@ -661,15 +661,15 @@ www   IN  A       1.2.3.5
 
               <p>In this variant we use <module>mod_rewrite</module>
               and its proxy throughput feature. First we dedicate
-              <code>www0.foo.com</code> to be actually
-              <code>www.foo.com</code> by using a single</p>
+              <code>www0.example.com</code> to be actually
+              <code>www.example.com</code> by using a single</p>
 
 <example><pre>
-www    IN  CNAME   www0.foo.com.
+www    IN  CNAME   www0.example.com.
 </pre></example>
 
               <p>entry in the DNS. Then we convert
-              <code>www0.foo.com</code> to a proxy-only server,
+              <code>www0.example.com</code> to a proxy-only server,
               i.e., we configure this machine so all arriving URLs
               are simply passed through its internal proxy to one of
               the 5 other servers (<code>www1-www5</code>). To
@@ -709,7 +709,7 @@ while (&lt;STDIN&gt;) {
 </pre></example>
 
               <note>A last notice: Why is this useful? Seems like
-              <code>www0.foo.com</code> still is overloaded? The
+              <code>www0.example.com</code> still is overloaded? The
               answer is yes, it is overloaded, but with plain proxy
               throughput requests, only! All SSI, CGI, ePerl, etc.
               processing is handled done on the other machines.