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.

Reply via email to