From: Joe Orton Date: Tue, 24 Jul 2012 13:47:54 +0000 (+0000) Subject: * docs/: Clarify ProxyBlock docs. X-Git-Tag: 2.5.0-alpha~6590 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b9ac55f1d26cc6517a4b8daf54254354ffd1f0f;p=thirdparty%2Fapache%2Fhttpd.git * docs/: Clarify ProxyBlock docs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1365053 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 185486f728f..48eddca6cfc 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -1368,21 +1368,41 @@ will rewrite a cookie with backend path / (or ProxyBlock -Words, hosts, or domains that are banned from being -proxied -ProxyBlock *|word|host|domain -[word|host|domain] ... +Disallow proxy requests to certain hosts +ProxyBlock *|hostname|partial-hostname [hostname|partial-hostname]... server configvirtual host -

The ProxyBlock directive specifies a list of - words, hosts and/or domains, separated by spaces. HTTP, HTTPS, and - FTP document requests to sites whose names contain matched words, - hosts or domains are blocked by the proxy server. The proxy - module will also attempt to determine IP addresses of list items which - may be hostnames during startup, and cache them for match test as - well. That may slow down the startup time of the server.

+

The ProxyBlock directive can be used to + block FTP or HTTP access to certain hosts via the proxy, based on + a full or partial hostname match, or, if applicable, an IP address + comparison.

+ +

Each of the arguments to the ProxyBlock + directive can be either * or a alphanumeric string. + At startup, the module will attempt to resolve every alphanumeric + string from a DNS name to a set of IP addresses, but any DNS errors + are ignored.

+ +

If an asterisk "*" argument is specified, + mod_proxy will deny access to all FTP or HTTP + sites.

+ +

Otherwise, for any request for an HTTP or FTP resource via the + proxy, mod_proxy will check the hostname of the + request URI against each specified string. If a partial string + match is found, access is denied. If no matches against hostnames + are found, and a remote (forward) proxy is configured using + ProxyRemote or + ProxyRemoteMatch, access is allowed. If no + remote (forward) proxy is configured, the IP address of the + hostname from the URI is compared against all resolved IP + addresses determined at startup. Access is denied if any match is + found.

+ +

Note that the DNS lookups may slow down the startup time of the + server.

Example