spaces in URI

Igor Sysoev igor at sysoev.ru
Tue Sep 28 21:59:38 MSD 2010


On Tue, Sep 28, 2010 at 01:37:01PM -0400, cgarver wrote:

> Sorry to be a pain, but I cannot claim success yet.
> 
> The good news - the image now appears.
> 
> The bad news - the /us/ is now case sensitive and the www.xxxx.xxx/us/
> site never returns.  It's in some kind of loop.  A page further down
> like www.xxxx.xxx/us/some-directory/some-page will work.
> 
> location ^~ /us {
>     proxy_pass       http://backendcms/;
>     proxy_set_header Host xxx.xxx.xxx;
>     subs_filter      ....

You have to create 4 locations:

 location ^~ /us {
 location ^~ /US {
 location ^~ /Us {
 location ^~ /uS {


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list