Nginx and cgit - upstream prematurely closed FastCGI stdout
Lars
snafu at live.de
Sat Jan 25 22:22:19 UTC 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140125/6d6bfa68/attachment.html>
More information about the nginx
mailing list