[squid-users] Disabling error pages

2008-10-16 Thread Robert Morrison

Hi,

I've found lots of references online (in this list's archives, other sites and 
the FAQ) to customising error pages in squid, but haven't yet found reference 
to removing error pages completely.

My squid box is running transparently. In the case of any errors I'd like it to 
simply return no content to users, so it is not so obvious that their access is 
being proxied.

Is this possible without editing source code? I think I saw reference to 
setting font color in error messages to the same as background, but I'd prefer 
something a little less hackish ;)

Thanks

R

_
Catch up on all the latest celebrity gossip 
http://clk.atdmt.com/GBL/go/115454061/direct/01/

Re: [squid-users] Disabling error pages

2008-10-16 Thread Henrik Nordstrom
On tor, 2008-10-16 at 13:02 +0100, Robert Morrison wrote:

 I've found lots of references online (in this list's archives, other
 sites and the FAQ) to customising error pages in squid, but haven't
 yet found reference to removing error pages completely.

You can't. Oce the request has reached the proxy the proxy must respond
with someting. If it fails retreiving the requested object the polite
thing is to respond with an error message explaining what happened and
what the user can do to fix the peoblem.

If you fo not want to be polite to the users then you MAY change the
error pages to just a blank page with no visible content, but there
still needs to be somr kind of response.

 Is this possible without editing source code? I think I saw reference
 to setting font color in error messages to the same as background, but
 I'd prefer something a little less hackish ;)

Yes. Just replace the error pages with a file containing just the
following line:

!-- %s --

Regards
Henrik


signature.asc
Description: This is a digitally signed message part


Re: [squid-users] Disabling error pages

2008-10-16 Thread Amos Jeffries
 On tor, 2008-10-16 at 13:02 +0100, Robert Morrison wrote:

 I've found lots of references online (in this list's archives, other
 sites and the FAQ) to customising error pages in squid, but haven't
 yet found reference to removing error pages completely.

 You can't. Oce the request has reached the proxy the proxy must respond
 with someting. If it fails retreiving the requested object the polite
 thing is to respond with an error message explaining what happened and
 what the user can do to fix the peoblem.

 If you fo not want to be polite to the users then you MAY change the
 error pages to just a blank page with no visible content, but there
 still needs to be somr kind of response.

 Is this possible without editing source code? I think I saw reference
 to setting font color in error messages to the same as background, but
 I'd prefer something a little less hackish ;)

 Yes. Just replace the error pages with a file containing just the
 following line:

 !-- %s --

 Regards
 Henrik


Also see TCP_RESET
http://www.squid-cache.org/Versions/v3/3.0/cfgman/deny_info.html

Amos