LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 11-20-2012, 10:49 PM   #1
4Paul4
Member
 
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:
example:
Code:
http_access allow publicall
deny_info http://xxx.cloudfront.net/offline.html 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.

Code:
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?

Cheers

Squid info:
Code:
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:
Code:
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
 
  


Reply

Tags
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 08:03 PM
acl dst_as, problem with cache_peer_access on squid arruah Linux - Server 1 05-24-2011 12:12 AM
Squid.conf configuration for http_access not working properly nandagopalrvarma Linux - Server 9 03-03-2009 12:43 AM
Tedious job to detect http_access rule in squid suhas! Linux - Server 1 05-06-2007 01:54 AM
Squid problem with http_access and time acl mago Linux - Networking 1 11-25-2005 02:11 PM


All times are GMT -5. The time now is 02:32 PM.

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