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

Reply via email to