spaces in URI
Igor Sysoev
igor at sysoev.ru
Tue Sep 28 21:15:33 MSD 2010
On Tue, Sep 28, 2010 at 01:06:36PM -0400, cgarver wrote:
> Glad to do so!
>
> from nginx.conf
> upstream backendcms {
> server 172.26.161.230;
> }
>
> from my location specific conf
> location ~* ^/us(.*)? {
> proxy_set_header Host xxx.xxx.xxx;
> proxy_pass http://backendcms$1;
> subs_filter .....
> }
>
> It truly is the white-space causing the issue because I copied the
> "Member Images" folder to "Member-Images". Trying the URI with the
> hypen works and with the %20 does not.
The 400 error is sent by backend because backend does not support unencoded
spaces in URI. nginx can espace it, if you will use
location ^~ /us {
proxy_pass http://backendcms/;
proxy_set_header Host xxx.xxx.xxx;
subs_filter .....
}
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list