Search squid archive

Custom error page for HTTP status 400-404, 500

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am running a squid 3.2.1 server as a reverse proxy.  I have several
Microsoft Windows IIS servers as cache_peers.

I am trying to setup a custom error page for various HTTP_STATUS codes
such as 404 and 500.  This is a relevant extract from my squid.conf
file:

#squid config extract#

acl denied_status http_status 400-404 500 502 503

#Production JC
cache_peer api.mydomain.com parent 443 0 no-query originserver ssl
sslversion=3 sslflags=DONT_VERIFY_PEER front-end-https=on name=jc
login=PASSTHRU
acl sites_jc dstdomain api.mydomain.com
cache_peer_access jc deny sites_jc denied_status
cache_peer_access jc allow sites_jc serviceHours1
acl http proto http
acl https proto https

#EOF#

If I try to access api.mydomain.com/nonexistant, I still see the IIS 404
error page rather than the access denied squid error.

Any ideas?

Cheers.

-- 
http://www.fastmail.fm - A fast, anti-spam email service.



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux