proxy pass

Igor Sysoev is at rambler-co.ru
Fri Nov 30 09:50:48 MSK 2007


On Thu, Nov 29, 2007 at 06:41:28PM -0800, Cliff Wells wrote:

> On Thu, 2007-11-29 at 22:06 +0300, Igor Sysoev wrote:
> 
> > First, you need add URI-part:
> > 
> > -              proxy_pass http://$backend;
> > +              proxy_pass http://$backend$request_uri;
> > 
> 
> Out of curiosity: this worked before without $request_uri.  Is this
> requirement due to some side-effect from using a variable?

Yes, there is some disparity.

Before proxy_pass supports two forms
1) like root:    proxy_pass  http:/host:port
1) like alias:   proxy_pass  http:/host:port/uri

With variable support we can easy support "root" functionality.
But how we can to separate alias from full URL ?
May be so

      proxy_pass         $url;          # alias
      proxy_pass_full    $url;          # full URL

?


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





More information about the nginx mailing list