It is as native as you're going to get, I think, unless you want to write some custom C code for an nginx module that essentially does `lc $url` :)
Another dumb way might be to just proxy to a micro web app that does the case-fixing and emits 301s to it, that could be done with your preferred language. On Thu, Mar 26, 2015 at 2:00 PM, Mark Anthony Delfin <[email protected]> wrote: > Thanks Zap, I found that on google but looking for something native on nginx > if possible. > > On Thu, Mar 26, 2015 at 4:52 PM, Zak Elep <[email protected]> wrote: >> >> Maybe dumb(?) way is to just force a 301 Redirect to the case-fixed >> URL (which you can do with embedded perl:) >> >> >> location ~ [A-Z] { >> perl 'sub { my $r = shift; $r->internal_redirect(lc($r->uri)); }'; >> } >> >> >> On Thu, Mar 26, 2015 at 12:54 PM, Mark Anthony Delfin <[email protected]> >> wrote: >> > Hi Guys, >> > >> > What will be the best way to convert the url on nginx to all lowercase >> > letters? We are using nginx+haproxy for load balancing. >> > >> > Thank you. >> > >> > >> > >> > _________________________________________________ >> > Philippine Linux Users' Group (PLUG) Mailing List >> > http://lists.linux.org.ph/mailman/listinfo/plug >> > Searchable Archives: http://archives.free.net.ph >> >> >> >> -- >> Zak B. Elep || zakame.net >> 1486 7957 454D E529 E4F1 F75E 5787 B1FD FA53 851D >> _________________________________________________ >> Philippine Linux Users' Group (PLUG) Mailing List >> http://lists.linux.org.ph/mailman/listinfo/plug >> Searchable Archives: http://archives.free.net.ph > > > > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > http://lists.linux.org.ph/mailman/listinfo/plug > Searchable Archives: http://archives.free.net.ph -- Zak B. Elep || zakame.net 1486 7957 454D E529 E4F1 F75E 5787 B1FD FA53 851D _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

