[squid-users] Customizing ERR_TOO_BIG

From: Uto Cen <utopian.centaury@dont-contact.us>
Date: Thu, 6 Dec 2007 17:29:29 +1030

Hi,
this is my setup for squid as a reverse proxy:

client -> squid -> origin server with apache virtual hosting for
www.mysite1.com and www.mysite2.com

I would like to have a global file upload protection of 4MB max across
all virtual hosting domains.
So in squid.conf I have:
request_body_max_size 4 MB

and I would like to customize the error message to the client based on
the virtual domain that it's accessing, for example:

www.mysite1.com should show an error page from www.mysite1.com/errtoobig.html
and
www.mysite2.com show show an error page from www..mysite2.com/errtoobig.html

So, I went to ERR_TOO_BIG and added this line in the meta refresh:

<META http-equiv="refresh" content="0;URL=http://%V/errtoobig.html">

but Squid doesn't recognize %V as the host-header.

what is the HTTP_HOST header variable that Squid expects, or is there
a better to accomplish what I'm trying to achieve here.

Uto
Received on Wed Dec 05 2007 - 23:59:32 MST

This archive was generated by hypermail pre-2.1.9 : Tue Jan 01 2008 - 12:00:01 MST