Uto Cen wrote:
> 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
You need to look at deny_info with %s or whatever the equivalent is
there for hostname-only. Then just write your own err page as a script
that takes it as a GET parameter.
Amos
Received on Thu Dec 06 2007 - 04:42:34 MST
This archive was generated by hypermail pre-2.1.9 : Tue Jan 01 2008 - 12:00:01 MST