Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Lua filter to specific url

$
0
0

Hello,
How to limit lua filter for a specific url, i tested but it seems does not working.
i tried 2 ways:

ACL:
acl acl_pagetomodify path -i -m beg /modifpages
filter lua.applymodify if acl_ pagetomodify

Variable:
acl acl_pagetomodify path -i -m beg /modifpages
http-request set-var(txn.tomodify) str(true)
filter lua.applymodify

In lua file i set:
function filter:start_analyze(txn, chn)
local my = txn:get_var(“txn.tomodify”)
if my then
print(‘######START#####LUA##################’…my)
filter.register_data_filter(self, chn)
end
end

How can i do to linit filter to specific url?

Thanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>