From adf9c7f1498e86053bf5fa4868f5a719bf811c86 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 6 Dec 2006 15:39:08 +0000 Subject: [PATCH] unix socket upstreams always used the first unix upstream --- src/core/ngx_inet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 687160269..73209c7e0 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -287,6 +287,9 @@ ngx_parse_url(ngx_conf_t *cf, ngx_url_t *u) u->addrs[0].name.len = len + 5; u->addrs[0].name.data = u->url.data; + u->host.len = len; + u->host.data = p; + u->host_header.len = sizeof("localhost") - 1; u->host_header.data = (u_char *) "localhost";