upstream with fastcgi_pass

jack.wang ysh lists at ruby-forum.com
Fri Apr 8 07:26:11 MSD 2011


I hook nginx code,than can resolve this problem,
like this:

diff -uNr nginx-0.8.54-from/src/http/modules/ngx_http_fastcgi_module.c 
nginx-0.8.54-to/src/http/modules/ngx_http_fastcgi_module.c
--- nginx-0.8.54-from/src/http/modules/ngx_http_fastcgi_module.c 
2010-08-03 21:35:48.000000000 +0800
+++ nginx-0.8.54-to/src/http/modules/ngx_http_fastcgi_module.c 
2011-04-06 15:05:43.000000000 +0800
@@ -636,12 +636,12 @@
         return NGX_ERROR;
     }

-    if (url.no_port) {
+   /* if (url.no_port) {
         ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
                       "no port in upstream \"%V\"", &url.url);
         return NGX_ERROR;
     }
-
+*/
     u = r->upstream;

     u->resolved = ngx_pcalloc(r->pool, 
sizeof(ngx_http_upstream_resolved_t));

-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list