URL encoded URLs and regex locations

Joe Williams joe at joetify.com
Tue May 5 23:14:23 MSD 2009


I found this post 
(http://thread.gmane.org/gmane.comp.web.nginx.english/9526) regarding 
URL encoding, example from the email (e.g. /foo/bar%2Fbaz -> 
/foo/bar/baz). I have a regex location (location ~ /my_url*) for a 
proxy_pass, adding the '/' to the end of the upstream server gives me an 
error:

> "proxy_pass" may not have URI part in location given by regular 
> expression, or inside named location, or inside the "if" statement, or 
> inside the "limit_except" block

Is there any way around this, I need regex in my location and URL 
encoded URLs to work properly.

Thanks.
-Joe



-- 
Name: Joseph A. Williams
Email: joe at joetify.com
Blog: http://www.joeandmotorboat.com/






More information about the nginx mailing list