Re: [squid-users] external_acl_type with http request header question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 10 May 2005 10:31:15 +0200 (CEST)

On Tue, 10 May 2005, Ryan Lamberton wrote:

> Still not working...OK I have:
>
> external_acl_type propel_header_auth %{Hdr:member} /etc
> /squid/ident.sh x-pun:user
>
> #
> Is the "%{Hdr:member}" exactly what I need there? And is
> "x-pun:user" needed on the end (x-pun is the header name)?
> How is the header looked up and passed to the ident.sh program?

Then you should use

%{x-pun}

The %{header:member} thing is if you for example want the cache-control
max-age parameter value. The format is then %{Cache-control:max-age}

> acl propel_auth external propel_header_auth x-pun

You don't need any arguments in the acl unless you want these to be sent
to the helper in addition to the format string details.

Regards
Henrik
Received on Tue May 10 2005 - 02:31:17 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Jun 01 2005 - 12:00:02 MDT