comparison src/http/modules/ngx_http_proxy_module.c @ 896:f247db60fc85

fix fastcgi and memcached upstreams
author Igor Sysoev <igor@sysoev.ru>
date Mon, 11 Dec 2006 08:59:30 +0000
parents 4d68c486fcb0
children a0310ac2814f
comparison
equal deleted inserted replaced
895:49d03c183ad2 896:f247db60fc85
2157 ngx_memzero(&u, sizeof(ngx_url_t)); 2157 ngx_memzero(&u, sizeof(ngx_url_t));
2158 2158
2159 u.url.len = url->len - add; 2159 u.url.len = url->len - add;
2160 u.url.data = url->data + add; 2160 u.url.data = url->data + add;
2161 u.default_portn = port; 2161 u.default_portn = port;
2162 u.upstream = 1;
2162 u.no_resolve = 1; 2163 u.no_resolve = 1;
2163 u.uri_part = 1; 2164 u.uri_part = 1;
2164 2165
2165 plcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); 2166 plcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0);
2166 if (plcf->upstream.upstream == NULL) { 2167 if (plcf->upstream.upstream == NULL) {