You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Dominique BURGARD <bu...@vitrage.saint-gobain.fr> on 1997/05/05 11:10:02 UTC
mod_proxy/546: ErrorDocument + proxy pb when using local URL's
>Number: 546
>Category: mod_proxy
>Synopsis: ErrorDocument + proxy pb when using local URL's
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache (Apache HTTP Project)
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon May 5 02:10:01 1997
>Originator: burgard@vitrage.saint-gobain.fr
>Organization:
apache
>Release: 1.2b10
>Environment:
i386-pc-linux-gnu
>Description:
Problem with ErrorDocument + proxy pb when referring to a local URL that uses
other local URL to handle the error.
I tried to use the <Location> directive to deny proxy access to a host(tioman):
<Location http://>
order allow,deny
allow from all
deny from tioman.cha.sekurit.saint-gobain.fr
ErrorDocument 403 /reject.html
</Location>
I created a reject.html with the following contents:
<TITLE>Reject</TITLE>
<img src=devil.gif align=middle>
You don't have access to this server!
When I connect to www.netscape.com for example from tioman.
I get the access denied page without the devil.gif and in my error_log there
is an entry:
[Mon May 5 09:49:47 1997] access to proxy:http://www.netscape.com/devil.gif
^^^^^^^^^^^^^^^^^^^^^^^
failed for tioman.cha.sekurit.saint-gobain.fr, reason:
Client denied by server configuration
The server used the address of the page I accessed (http://www.netscape.com)
and not the address of my proxy server (http://proxy) to build the URL of
the devil.gif file (http://proxy/devil.gif)
If I write <img src=http://proxy/devil.gif align=middle> the server looks for
the devil.gif at the right location and not at
http://www.netscape.com/devil.gif!
Note:
If I use the hostname instead of the FQDN for the rejected host, It doesn't
get rejected! (Even if gethostbyname works).
>How-To-Repeat:
-
>Fix:
>Audit-Trail:
>Unformatted: