From: Nilgun Belma Buguner Date: Tue, 3 Nov 2009 06:54:40 +0000 (+0000) Subject: fixed validation error: X-Git-Tag: 2.3.3~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcc9b1c1dd432153010f2df63935ed9e0c6fff9f;p=apache fixed validation error: Attribute value "proxy-deny" of type ID must be unique within the document. Possibly a copy&paste error git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832314 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/rewrite_guide.xml b/docs/manual/rewrite/rewrite_guide.xml index 31d88cc3de..b3b2166b4b 100644 --- a/docs/manual/rewrite/rewrite_guide.xml +++ b/docs/manual/rewrite/rewrite_guide.xml @@ -400,43 +400,6 @@ RewriteRule ^foo\.html$ foo.night.html -
- - 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 webserver. 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]
-
-
-
- -
-
External Rewriting Engine