Revision: 14822
Author: adrian.chadd
Date: Fri Nov 5 01:22:30 2010
Log: Update
http://code.google.com/p/lusca-cache/source/detail?r=14822
Added:
/playpen/LUSCA_HEAD_ipv6/helpers/external_acl/regex/README
=======================================
--- /dev/null
+++ /playpen/LUSCA_HEAD_ipv6/helpers/external_acl/regex/README Fri Nov 5
01:22:30 2010
@@ -0,0 +1,39 @@
+This is a very simple regular expression external ACL helper.
+It is designed as a proof-of-concept helper and not designed
+for production use. That said, people _ARE_ using it, so it's
+up to you.
+
+The largest URL this supports currently is 16k - HELPERBUFSZ.
+
+To use:
+
+* Compile:
+
+$ cc regex.c -o regex
+
+* Copy somewhere, eg
+
+$ cp regex /Users/adrian/work/lusca/run/local/
+
+* Copy the config file too
+
+$ cp test.txt /Users/adrian/work/lusca/run/local/regex.txt
+
+* Add the external_acl section to the config:
+
+external_acl_type check_regex children=1 concurrency=32 ttl=1
negative_ttl=1 %URI /Users/adrian/work/lusca/run/local/regex
/Users/adrian/work/lusca/run/etc/regex.txt
+acl acl_check_regex external check_regex
+
+Now, use "check_regex" as a check against whether something is in the file
+or not. Since the file returns OK if it's not in the file, and ERR if
there's
+a match, you need to use a negation. The ERR response returns the specific
+line number in the file which matched.
+
+# deny external ACL stuff
+http_access deny !acl_check_regex
+
+Note that concurrency is required - increase this if you have issues.
+You can also bump children up past 1 (I have 1 CPU on this laptop so it
+wouldn't help) but you shouldn't need to bump it up past the number of
+CPU cores you have.
+
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.