[squid-users] dynamic messages from acl helper program

Alan lameventanas at gmail.com
Thu Jan 21 05:35:05 UTC 2016


On Wed, Jan 20, 2016 at 3:34 AM, Sreenath BH <bhsreenath at gmail.com> wrote:
>
> We are using acl helper to authenticate users. Squid allows a template
> file that will be used to send a custom error message when the ACL
> sends an "ERR" string back to squid.
>
> In our case the acl helper contacts another web service for authentication.
> Is there a way to send the message we get from the web service (or any
> thing that changes from request to request) back to the client.
>
> Essentially what we are looking for is a way to change the error
> message at run time.

If I understood correctly, what you want is covered by the external
acl keyword "message", which will be replaced into %o in the error
pages.

Please read the docs:
http://www.squid-cache.org/Doc/config/external_acl_type/


More information about the squid-users mailing list