You can do the same on Nginx with <a href="https:&#x2F;&#x2F;github.com&#x2F;openresty&#x2F;lua-nginx-module" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;openresty&#x2F;lua-nginx-module</a> (and much more)