From: Kathryn Cassidy (hellbunnie at domain irelands-web.ie)
Date: Thu 04 May 2000 - 17:08:40 IST
We've got an intranet server running apache and a proxy running squid
and we've set up the apache server so that it won't accept connections
from the proxy, so that our internal company stuff won't be cached on a
machine that's open to all.
Well, we decided that it would be nice if apache displayed a nice error
message to browsers trying to connect via the proxy machine so I set up
a custom error message in httpd.conf as follows:
ErrorDocument 403 "Your connection has been refused by the server. A
possible reason is that your browser's proxy settings are incorrectly
configured. Please contact your Systems Administrator to fix this
I also set up a .htaccess file to deny all connections from the proxy
Now however, when I try to connect from my machine, going through the
proxy server, I get a 'connection reset by peer' error instead of my
beautifully crafted custom message.
Before I set up apache to deny access from the proxy machine, I could
retrieve pages quite happily while connecting through the proxy, and if
I set it up to deny my own machine and don't go through the proxy I get
my custom message.
Is it possible that squid is just displaying its own error instead of
the one it gets from apache? Is there any setting I should be looking
at on the proxy machine to try to fix it?
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:01 GMT