From: Rich Bowen Date: Fri, 13 Nov 2009 12:40:58 +0000 (+0000) Subject: Removes another bogus example. Use blocks instead, and standard X-Git-Tag: 2.3.4~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1b955eddd96edbf2075d22ed2b28f2e1e8ecb6c;p=thirdparty%2Fapache%2Fhttpd.git Removes another bogus example. Use blocks instead, and standard access control methods. Also, the note about loading mod_rewrite before mod_proxy isn't actually relevant any more. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@835827 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/rewrite_guide.html.en b/docs/manual/rewrite/rewrite_guide.html.en index f6e161dec9a..86d934dc359 100644 --- a/docs/manual/rewrite/rewrite_guide.html.en +++ b/docs/manual/rewrite/rewrite_guide.html.en @@ -52,7 +52,6 @@
  • Retrieve Missing Data from Intranet
  • New MIME-type, New Service
  • Mass Virtual Hosting
  • -
  • Proxy Deny
  • Referer-based Deflector
  • See also

    • Module documentation
    • mod_rewrite @@ -594,43 +593,6 @@ RewriteRule ^/(.*)$ %1/$1 [E=VHOST:${lowercase:%{HTTP_HOST}}]
      top
      -

      Proxy Deny

      - - - -
      -
      Description:
      - -
      -

      How can we forbid a certain host or even a user of a - special host from using the Apache proxy?

      -
      - -
      Solution:
      - -
      -

      We first have to make sure mod_rewrite - is below(!) mod_proxy in the Configuration - file when compiling the Apache web server. This way it gets - called before mod_proxy. Then we - configure the following for a host-dependent deny...

      - -
      -RewriteCond %{REMOTE_HOST} ^badhost\.mydomain\.com$
      -RewriteRule !^http://[^/.]\.mydomain.com.*  - [F]
      -
      - -

      ...and this one for a user@host-dependent deny:

      - -
      -RewriteCond %{REMOTE_IDENT}@%{REMOTE_HOST}  ^badguy@badhost\.mydomain\.com$
      -RewriteRule !^http://[^/.]\.mydomain.com.*  - [F]
      -
      -
      -
      - -
      top
      -

      Referer-based Deflector

      diff --git a/docs/manual/rewrite/rewrite_guide.xml b/docs/manual/rewrite/rewrite_guide.xml index 81be74287b5..c8ec04a2d95 100644 --- a/docs/manual/rewrite/rewrite_guide.xml +++ b/docs/manual/rewrite/rewrite_guide.xml @@ -591,43 +591,6 @@ RewriteRule ^/(.*)$ %1/$1 [E=VHOST:${lowercase:%{HTTP_HOST}}] -
      - - Proxy Deny - -
      -
      Description:
      - -
      -

      How can we forbid a certain host or even a user of a - special host from using the Apache proxy?

      -
      - -
      Solution:
      - -
      -

      We first have to make sure mod_rewrite - is below(!) mod_proxy in the Configuration - file when compiling the Apache web server. This way it gets - called before mod_proxy. Then we - configure the following for a host-dependent deny...

      - -
      -RewriteCond %{REMOTE_HOST} ^badhost\.mydomain\.com$
      -RewriteRule !^http://[^/.]\.mydomain.com.*  - [F]
      -
      - -

      ...and this one for a user@host-dependent deny:

      - -
      -RewriteCond %{REMOTE_IDENT}@%{REMOTE_HOST}  ^badguy@badhost\.mydomain\.com$
      -RewriteRule !^http://[^/.]\.mydomain.com.*  - [F]
      -
      -
      -
      - -
      -
      Referer-based Deflector