proxy pass

Igor Sysoev is at rambler-co.ru
Fri Nov 30 11:25:24 MSK 2007


On Fri, Nov 30, 2007 at 09:50:48AM +0300, Igor Sysoev wrote:

> 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
> 
> ?

Other way: rename old
    proxy_pass   http://host:port/uri
to
    proxy_alias  http://host:port/uri
and issue warning to use proxy_alias instead of proxy_pass.


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





More information about the nginx mailing list