Can I proxy_pass to a variable?

任晓磊 julyclyde at gmail.com
Mon May 10 12:29:46 MSD 2010


On Mon, May 10, 2010 at 2:07 PM, Igor Sysoev <igor at sysoev.ru> wrote:
> You have to write:
>
>     proxy_pass http://$http_host$request_uri;
>
> Since 0.8.25 and 0.7.65, you may write:
>
>     proxy_pass http://$http_host;

But, why didn't I need to specify $request_uri when proxy_pass to a
literal value?

-- 
Ren Xiaolei



More information about the nginx mailing list