replace-filter-nginx-module
replace-filter-nginx-module copied to clipboard
Using nginx variables in the regular expression
I'm using nginx for many projects, there is a possibility to add the use of nginx variables in the query, for example: replace_filter /$project/ /, - or: replace_filter "/$project/" /
Nginx variables are not supported (yet) in the pattern arguments. And to make this feature really useful, we'll have to implement an LRU-based compiled regex cache for it as well, because regex compilation is expensive.
Patches welcome :)
hey, is there any update on this?