Search squid archive

Customizing ERR_TOO_BIG

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

 



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

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

  Powered by Linux