httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject cvs commit: httpd-2.0/docs/manual/misc rewriteguide.xml
Date Mon, 07 Jul 2003 21:19:43 GMT
mads        2003/07/07 14:19:43

  Modified:    docs/manual/misc rewriteguide.xml
  Log:
  Remove "Reverse Proxy" example to avoid open proxies
  
  Reviewed by:	Rich Bowen
  
  Revision  Changes    Path
  1.9       +0 -117    httpd-2.0/docs/manual/misc/rewriteguide.xml
  
  Index: rewriteguide.xml
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/misc/rewriteguide.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- rewriteguide.xml	12 Apr 2003 15:04:46 -0000	1.8
  +++ rewriteguide.xml	7 Jul 2003 21:19:43 -0000	1.9
  @@ -1361,123 +1361,6 @@
   
       <section>
   
  -      <title>Reverse Proxy</title>
  -
  -      <dl>
  -        <dt>Description:</dt>
  -
  -        <dd>...</dd>
  -
  -        <dt>Solution:</dt>
  -
  -        <dd>
  -<example><pre>
  -##
  -##  apache-rproxy.conf -- Apache configuration for Reverse Proxy Usage
  -##
  -
  -#   server type
  -ServerType           standalone
  -Listen               8000
  -MinSpareServers      16
  -StartServers         16
  -MaxSpareServers      16
  -MaxClients           16
  -MaxRequestsPerChild  100
  -
  -#   server operation parameters
  -KeepAlive            on
  -MaxKeepAliveRequests 100
  -KeepAliveTimeout     15
  -Timeout              400
  -IdentityCheck        off
  -HostnameLookups      off
  -
  -#   paths to runtime files
  -PidFile              /path/to/apache-rproxy.pid
  -LockFile             /path/to/apache-rproxy.lock
  -ErrorLog             /path/to/apache-rproxy.elog
  -CustomLog            /path/to/apache-rproxy.dlog "%{%v/%T}t %h -&gt; %{SERVER}e URL:
%U"
  -
  -#   unused paths
  -ServerRoot           /tmp
  -DocumentRoot         /tmp
  -CacheRoot            /tmp
  -RewriteLog           /dev/null
  -TransferLog          /dev/null
  -TypesConfig          /dev/null
  -AccessConfig         /dev/null
  -ResourceConfig       /dev/null
  -
  -#   speed up and secure processing
  -&lt;Directory /&gt;
  -Options -FollowSymLinks -SymLinksIfOwnerMatch
  -AllowOverride None
  -&lt;/Directory&gt;
  -
  -#   the status page for monitoring the reverse proxy
  -&lt;Location /apache-rproxy-status&gt;
  -SetHandler server-status
  -&lt;/Location&gt;
  -
  -#   enable the URL rewriting engine
  -RewriteEngine        on
  -RewriteLogLevel      0
  -
  -#   define a rewriting map with value-lists where
  -#   mod_rewrite randomly chooses a particular value
  -RewriteMap     server  rnd:/path/to/apache-rproxy.conf-servers
  -
  -#   make sure the status page is handled locally
  -#   and make sure no one uses our proxy except ourself
  -RewriteRule    ^/apache-rproxy-status.*  -  [L]
  -RewriteRule    ^(http|ftp)://.*          -  [F]
  -
  -#   now choose the possible servers for particular URL types
  -RewriteRule    ^/(.*\.(cgi|shtml))$  to://${server:dynamic}/$1  [S=1]
  -RewriteRule    ^/(.*)$               to://${server:static}/$1
  -
  -#   and delegate the generated URL by passing it
  -#   through the proxy module
  -RewriteRule    ^to://([^/]+)/(.*)    http://$1/$2   [E=SERVER:$1,P,L]
  -
  -#   and make really sure all other stuff is forbidden
  -#   when it should survive the above rules...
  -RewriteRule    .*                    -              [F]
  -
  -#   enable the Proxy module without caching
  -ProxyRequests        on
  -NoCache              *
  -
  -#   setup URL reverse mapping for redirect reponses
  -ProxyPassReverse  /  http://www1.foo.dom/
  -ProxyPassReverse  /  http://www2.foo.dom/
  -ProxyPassReverse  /  http://www3.foo.dom/
  -ProxyPassReverse  /  http://www4.foo.dom/
  -ProxyPassReverse  /  http://www5.foo.dom/
  -ProxyPassReverse  /  http://www6.foo.dom/
  -</pre></example>
  -
  -<example><pre>
  -##
  -##  apache-rproxy.conf-servers -- Apache/mod_rewrite selection table
  -##
  -
  -#   list of backend servers which serve static
  -#   pages (HTML files and Images, etc.)
  -static    www1.foo.dom|www2.foo.dom|www3.foo.dom|www4.foo.dom
  -
  -#   list of backend servers which serve dynamically
  -#   generated page (CGI programs or mod_perl scripts)
  -dynamic   www5.foo.dom|www6.foo.dom
  -</pre></example>
  -        </dd>
  -      </dl>
  -
  -    </section>
  -
  -    <section>
  -
         <title>New MIME-type, New Service</title>
   
         <dl>
  
  
  

Mime
View raw message