Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-20-2012, 09:49 PM   #1
Registered: Jul 2011
Posts: 51

Rep: Reputation: Disabled
Squid ReverseProxy: custom error pages with cache_peer_access rather than http_access

I am trying to setup some custom error pages on a squid reverse proxy server.

I know how to do this using http_access deny rules:
http_access allow publicall
deny_info publicall
But I am using cache_peer_access to block access to certain websites. This is working well but the blocked users get ERR_CANNOT_FORWARD.

cache_peer_access tests allow sites_tests sydney
cache_peer_access tests deny sites_tests wisp
Is there a way to give them a custom error page? Is there an equivalent to deny_info for cache_peer_access?


Squid info:
Squid Cache: Version 3.2.1
configure options:  '--build=x86_64-linux-gnu' '--prefix=/usr' '--enable-ssl' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=${prefix}/lib/squid3' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--srcdir=.' '--datadir=/usr/share/squid3' '--sysconfdir=/etc/squid3' '--mandir=/usr/share/man' '--with-cppunit-basedir=/usr' '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-underscores' '--enable-icap-client' '--enable-arp-acl' '--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' '--enable-epoll' '--enable-linux-netfilter' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -g -Wall -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2 -g -Wall -O2' 'FFLAGS=-g -O2' '-with-openssl=/usr/include/openssl/' '--enable-http-violations'
OS Info:
Linux ip-10-0-0-36 3.2.0-25-virtual #40-Ubuntu SMP Wed May 23 22:20:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


proxy, reverse proxy, squid, squid3, ubuntu 12.04

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Squid custom error pages 4Paul4 Linux - Server 4 06-21-2012 07:03 PM
acl dst_as, problem with cache_peer_access on squid arruah Linux - Server 1 05-23-2011 11:12 PM
Squid.conf configuration for http_access not working properly nandagopalrvarma Linux - Server 9 03-02-2009 11:43 PM
Tedious job to detect http_access rule in squid suhas! Linux - Server 1 05-06-2007 12:54 AM
Squid problem with http_access and time acl mago Linux - Networking 1 11-25-2005 01:11 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration