[squid-users] How to use access.log codes in custom error page

Amos Jeffries squid3 at treenet.co.nz
Sun Mar 1 02:14:20 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/02/2015 9:59 a.m., Yuri Voinov wrote:
> Hi gents.
> 
> Can I use log codes in custom error page and how to do this? Some 
> examples will be useful.
> 
> In details, interested in using adapt::<last_h code.
> 
> Just point me on right way.

You just wrote the static text with the code in it at the position you
want the item to appear.

The currently supported error page macro/tag/code's are listed at:
<http://wiki.squid-cache.org/Features/CustomErrors#ERR_.2A_template_codes_for_embedding>
Note most of the logformat codes are not supported yet.

And have a look at the installed templates for plenty of examples of
usage.

Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJU8nX6AAoJELJo5wb/XPRjAI4IAMaJ1Bm2s77xzMPyMbMK5xoK
3VZJC4hxOxUcSOXuHyoTNNRAfE7gSAWPqf3PgR+kcqs5iSM6REmC1Jalo+Qv6Paa
RSAhKc39w4ZzMkE/kWVrqs4vzJOxRuG1M9F4Kx2faJMb8OECZx8+URBhF9U9UiSU
vVujyy71ooY9mO2nxldjlzqS/oiNWomxY2mKf7H5c/KbDoolGcMNDXsi0kP0HcQ9
ez9qVi2tVItT2Zb9D2gNbqbujlwMWlu761ydxzvrsGbvsuHTuQ7l1Ez5yXhixuAT
dsTUGOoq2A1fR7rmAjVu30C5DNdz/NYeBlGVjbWQC/mKpQ2lmOlTC9YmWIbdPZw=
=jgOh
-----END PGP SIGNATURE-----


More information about the squid-users mailing list