Nginx Substitutions Filter is a filter module able to do both regular expression and fixed string substitutions on response bodies. This module is quite different from the Nginx’s native Substitution Module. It scans the output chains buffer and matches string line by line, just like Apache’s mod_substitute.
I’ve played with the classic substitution module but due to limitations (only one matching pattern and no regex), it wasn’t easy to do all I wanted to do.
