Re: [squid-users] List of "tokens" or "macros" used in error page templates?

From: Amos Jeffries <squid3@dont-contact.us>
Date: Sat, 02 Feb 2008 16:25:28 +1300

Hostmaster wrote:
> Hi all, I am looking for a pointer of a list of those "macros" or
> "tokens" used in the errors/ templates.

http://squid.treenet.co.nz/Doc/Code/group__ErrorPageAPI.dyn
These are 3.x docs now but even 2.6 should not be too different.

>
> For example:
>
> <BLOCKQUOTE>
> Unable to determine IP address from host name for
> <I>%H</I>
> </BLOCKQUOTE>
>
> %H = hostname
>
> <P>Your cache administrator is <A HREF="mailto:%w">%w</A>.
>
> %w = email of webmaster
>
> What I'm looking for is one that contains the remote IP address of the
> client, hopefully it would still be set even if the X-Forwarded-for
> header is suppressed (I'm thinking it should be because squid still nows
> the remote IP address when it logs the client request into cache_access)
>
> I'm using 2.5.5 stable at the moment.

Well, you would be VERY much better off after upgrading.
2.5-anything are very old, with many known problems.

Amos

-- 
Please use Squid 2.6STABLE17+ or 3.0STABLE1+
There are serious security advisories out on all earlier releases.
Received on Fri Feb 01 2008 - 20:25:27 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:04 MST