proxy_pass based on (possibly changed) $host

Dave Bailey dave at
Wed Jan 28 20:45:38 MSK 2009

Hi Igor,

On Wed, Jan 28, 2009 at 9:00 AM, Igor Sysoev <is at> wrote:
> You may create $xproxy_url and $xproxy_host variable handlers in C module
> and use them as
>     proxy_pass        $xproxy_url;
>     proxy_set_header  Host $xproxy_host;

Thank you, that is perfect!


More information about the nginx mailing list