Revision: 14816
Author: adrian.chadd
Date: Thu Oct 21 19:06:05 2010
Log: README


http://code.google.com/p/lusca-cache/source/detail?r=14816

Added:
 /branches/LUSCA_HEAD/helpers/external_acl/regex/README

=======================================
--- /dev/null
+++ /branches/LUSCA_HEAD/helpers/external_acl/regex/README Thu Oct 21 19:06:05 2010
@@ -0,0 +1,37 @@
+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.
+
+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. I hate it, I will change the ordering
+of this soon.
+
+# 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.

Reply via email to