proxy pass

Igor Sysoev is at rambler-co.ru
Sat Dec 1 01:20:56 MSK 2007


On Fri, Nov 30, 2007 at 02:11:24PM -0800, Cliff Wells wrote:

> On Fri, 2007-11-30 at 11:25 +0300, Igor Sysoev wrote:
> > 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.
> > 
> 
> Oh, I have no problem with it.  I only wanted to understand and make
> sure it is documented properly on the wiki.

I'm going to implemnt proxy_alias.


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





More information about the nginx mailing list