Search squid archive

Re: external acl helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



An example for a helper in python.
You will need to remove the whole memcache stuff and this is the basic structure:
http://wiki.squid-cache.org/EliezerCroitoru/SessionHelper/Python


----
http://ngtech.co.il/lmgtfy/
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer@xxxxxxxxxxxx


From: squid-users [mailto:squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of O?uz ?smail Uysal
Sent: Sunday, January 22, 2017 11:21 AM
To: squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject:  external acl helper

Can I use a python script as external acl helper ? I have tested it quickly by adding these lines to squid.conf:

external_acl_type python %SRC /usr/bin/python ~/rekt.py
acl external_acl_helpers external python
http_access allow external_acl_helpers

And this is rekt.py:

#!/usr/bin/env python
print "OK"

As I sadly expected it did not work after restarting squid. Excuse my inadequate knowledge guys, how can I do this ?

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux