You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by ma...@apache.org on 2003/07/07 23:32:12 UTC
cvs commit: httpd-docs-1.3/htdocs/manual/misc rewriteguide.html
mads 2003/07/07 14:32:12
Modified: htdocs/manual/misc rewriteguide.html
Log:
Remove "Reverse Proxy" example to avoid open proxies
Reviewed by: Rich Bowen
Revision Changes Path
1.19 +0 -127 httpd-docs-1.3/htdocs/manual/misc/rewriteguide.html
Index: rewriteguide.html
===================================================================
RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/misc/rewriteguide.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- rewriteguide.html 13 Feb 2003 21:00:40 -0000 1.18
+++ rewriteguide.html 7 Jul 2003 21:32:12 -0000 1.19
@@ -1456,133 +1456,6 @@
</dd>
</dl>
- <h2>Reverse Proxy</h2>
-
- <dl>
- <dt><strong>Description:</strong></dt>
-
- <dd>...</dd>
-
- <dt><strong>Solution:</strong></dt>
-
- <dd>
- <table bgcolor="#E0E5F5" border="0" cellspacing="0"
- cellpadding="5">
- <tr>
- <td>
-<pre>
-##
-## apache-rproxy.conf -- Apache configuration for Reverse Proxy Usage
-##
-
-# server type
-ServerType standalone
-Port 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 -> %{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
-<Directory />
-Options -FollowSymLinks -SymLinksIfOwnerMatch
-AllowOverride None
-</Directory>
-
-# the status page for monitoring the reverse proxy
-<Location /apache-rproxy-status>
-SetHandler server-status
-</Location>
-
-# 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>
- </td>
- </tr>
- </table>
-
- <table bgcolor="#E0E5F5" border="0" cellspacing="0"
- cellpadding="5">
- <tr>
- <td>
-<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>
- </td>
- </tr>
- </table>
- </dd>
- </dl>
-
<h2>New MIME-type, New Service</h2>
<dl>
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org