unix socket upstreams always used the first unix upstream

This commit is contained in:
Igor Sysoev 2006-12-06 15:39:08 +00:00
parent c3d106a9bc
commit adf9c7f149

View File

@ -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";