Абсолютный URI и proxy_pass

Roxis roxis at list.ru
Tue May 27 14:01:48 MSD 2008


On Tuesday 27 May 2008, Igor Sysoev wrote:
> On Tue, May 27, 2008 at 10:59:34AM +0200, Roxis wrote:
> > Как заставить nginx проксировать абсолютный URI (GET http://...)?
> >
> > до 0.7.0 работал workaround:
> >
> > location / {
> >     set $http "http://";
> >     rewrite / $http$host$uri;
> > }
> >
> > location http {
> >     proxy_pass http://127.0.0.1:8080;
> > }
>
>         location / {
>             set         $http   "http://";
>             rewrite     /       $http$host$uri   break;
>             proxy_pass  http://127.0.0.1;
>         }

Спасибо, работает.





More information about the nginx-ru mailing list