rewrite uri to lowercase using nginx/perl, nginx/lua or apache
in Less than 1 minute read
Just wanted to drop this little snippet here as I’ve seen a lot of people saying you can only rewrite to lower case using embedded Perl. You can indeed do this with LUA which is a little faster than the embedded Perl.
If you need to rewrite a uri ‘/TEST’ to ‘/test’ you can do it with the following: