comparison src/http/modules/ngx_http_fastcgi_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
2008 value = cf->args->elts; 2008 value = cf->args->elts;
2009 2009
2010 ngx_memzero(&u, sizeof(ngx_url_t)); 2010 ngx_memzero(&u, sizeof(ngx_url_t));
2011 2011
2012 u.url = value[1]; 2012 u.url = value[1];
2013 u.upstream = 1;
2013 u.no_resolve = 1; 2014 u.no_resolve = 1;
2014 2015
2015 lcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); 2016 lcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0);
2016 if (lcf->upstream.upstream == NULL) { 2017 if (lcf->upstream.upstream == NULL) {
2017 return NGX_CONF_ERROR; 2018 return NGX_CONF_ERROR;