proxy pass

Igor Sysoev is at rambler-co.ru
Thu Nov 29 09:22:32 MSK 2007


On Wed, Nov 28, 2007 at 04:55:25PM -0800, Eire Angel wrote:

> anyone have an working example of the new proxy pass with URI directive?

It's not a new proxy_pass, it's old one that has been broken:

      locaiton /one/ {
          proxy_pass  http://localhost/two/;
      }

"/two/" is URI-part.

The proxy_pass supports variables, for example:

     proxy_pass  http://$host$uri;

and the the host part will be resolved on the fly.

> Igor Sysoev <is at rambler-co.ru> wrote: Changes with nginx 0.6.20                                        28 Nov 2007
> 
>     *) Bugfix: a segmentation fault might occur in worker process if a 
>        "proxy_pass" directive with URI-part was used; bug appeared in 
>        0.6.19.


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





More information about the nginx mailing list