spaces in URI

cgarver nginx-forum at
Tue Sep 28 22:14:09 MSD 2010

As I have other countries like Canada to deal with, it can get rather
unwieldy doing every permutation of case.  What about something like

rewrite (?i)^/us(.*)$ /us$1;
location ^~ /us {
    proxy_pass       http://backendcms/;
    proxy_set_header Host;

It seems to be allowing to work.  Not sure if there
will be any pitfalls later...

Posted at Nginx Forum:,97031,135058#msg-135058

More information about the nginx mailing list