<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="monospace">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:<br>
<br>
[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><br>
<br>
<br>
My nginx site is configured as follows:<br>
<br>
server {<br>
...<br>
root /var/www/cgit/;<br>
proxy_redirect off;<br>
<br>
location ~* ^.+\.(css|png|ico)$ {<br>
expires 30d;<br>
}<br>
<br>
location / {<br>
include fastcgi_params;<br>
fastcgi_param SCRIPT_FILENAME /var/www/cgit;<br>
fastcgi_pass unix:/var/run/fcgiwrap.socket;<br>
fastcgi_param PATH_INFO $uri;<br>
fastcgi_param QUERY_STRING $args;<br>
}<br>
}<br>
<br>
Does anybody have an idea, what is going wrong? I also tried to
raise the timeout limit, but I have no success.<br>
<br>
Thanks!<br>
snafu<br>
</font>
</body>
</html>