On Wed, 16 Apr 2008 20:34:39 +0200
Manlio Perillo <manlio_perillo-VGgt2q2+T+FeoW...@public.gmane.org> wrote:
Pretty nice!! although I am not planning using SCGI in Nginx at the
moment, I added SCGI support to my unofficial Nginx Gentoo ebuild:
http://code.connectical.com/overlay/browser/contrib/www-servers/nginx
(Gentoo users may prefer to add the entire overlay instead of manually
fetching the ebuild and related files, more more information look at
http://code.connectical.com/overlay)
My packaging adds support for the SCGI module (USE=scgi); the WSGI
module (USE=python), and my own "fancyindex" module (USE=fancyindex).
FYI, I had to remove line 1573 of ngx_http_scgi_module.c in order to
build the module with Nginx 0.6.30 because there is no "location"
member in the configuration sctruct (see attached patch). It *seems* to
work so my guess is that removing the line does not harm when using
Ningx 0.6.x
Cheers,
-Adrian
--
The Force is strong with this one.
-- (Darth Vader)
diff -r b466baa5fcdb src/ngx_http_scgi_module.c
--- a/src/ngx_http_scgi_module.c Wed Apr 16 20:00:58 2008 +0200
+++ b/src/ngx_http_scgi_module.c Fri May 02 01:50:05 2008 +0200
@@ -1570,7 +1570,7 @@
clcf->handler = ngx_http_scgi_handler;
- lcf->upstream.location = clcf->name;
+ /* lcf->upstream.location = clcf->name; */
if (clcf->name.data[clcf->name.len - 1] == '/') {
clcf->auto_redirect = 1;