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

Igor Sysoev is at rambler-co.ru
Tue May 27 13:46:47 MSD 2008


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;
        }


-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list