<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="monospace">Hello Richard,<br>
<br>
thanks for your help. I tried it and a lot of other things without
any success. <br>
<br>
But now it works. I just have install the latest </font><font
face="monospace"><font face="monospace">fastcgi </font>version
from sources with the same setup as mentioned. </font><br>
<br>
<font face="monospace">Unfortunately without the advantages of the
package management. <br>
<br>
Best regards,<br>
Lars<br>
</font><br>
<br>
<div class="moz-cite-prefix">On 26.01.2014 21:00, Richard Stanway
wrote:<br>
</div>
<blockquote
cite="mid:CAKWQeyhdnXNF70TWg9h7Sb6s=qcFKCvQS6Gv_Vuz7EDamfoX7Q@mail.gmail.com"
type="cite">
<pre wrap="">Hello,
I recently had a lot of trouble similar to this, and discovered that
the fastcgi_param directive is additive - eg a later declaration of
SCRIPT_FILENAME simply adds a second SCRIPT_FILENAME to the fastcgi
parameters. You most likely have SCRIPT_FILENAME set in your "include
fastcgi_params" which means the second one later on is being ignored.
On Sat, Jan 25, 2014 at 11:22 PM, Lars <a class="moz-txt-link-rfc2396E" href="mailto:snafu@live.de"><snafu@live.de></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'm trying to setup cgit 0.10 with nginx 1.2.1-2.2 and fastcgi 1.0.3-3.
Unfortunately the reponse is a 502. The following message is written in the
error.log:
[error] 30956#0: *1 upstream prematurely closed FastCGI stdout while reading
response header from upstream, client: **, server: **, request: "GET /
HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host:
"**"</i>
My nginx site is configured as follows:
server {
...
root /var/www/cgit/;
proxy_redirect off;
location ~* ^.+\.(css|png|ico)$ {
expires 30d;
}
location / {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/cgit;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_STRING $args;
}
}
Does anybody have an idea, what is going wrong? I also tried to raise the
timeout limit, but I have no success.
Thanks!
snafu
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a>
</pre>
</blockquote>
<br>
</body>
</html>