Welcome! Log In Create A New Profile

Advanced

Re: configuratioin fastcgi C/C++ program

Almir Karic
June 02, 2010 11:52AM
> 56         location /chat/ {
> 57             include /usr/local/nginx/conf/fastcgi.conf;
> 58             fastcgi_pass localhost:9000;
> 59         }

try something like this. the commented out fastcgi.conf may have
something to do with the error. showing fastcgi.conf may be also a
good idea

i would also check the supervisor stdout/stderr of your program

On Wed, Jun 2, 2010 at 6:52 AM, JCR <nginx-forum@nginx.us> wrote:
> Almir,
>
> Thank your for your help. I have supervisor running with:
> at the end of supervisord.conf:
>
> 131 [fcgi-program:chat]
> 132 command=/websites/nginx/chat.toff
> 133 socket=tcp://localhost:9000
>
> supervisor> status
> chat                             RUNNING    pid 4904, uptime 0:01:45
>
> in my nginx.conf file I have:
> 56         location ~ \.toff$ {
> 57             #include /usr/local/nginx/conf/fastcgi.conf;
> 58             fastcgi_pass localhost:9000;
> 59         }
>
> now when I browse my page, I am getting this in logs/error.log
> 2010/06/02 09:45:31 [error] 5839#0: *136 upstream prematurely closed connection while reading response header from upstream, client: 70.48.66.49, server: *.example.com, request: "GET /chat.toff HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com:8080"
>
> Any idea? Thanks again
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,93268,93580#msg-93580
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



--
python/django hacker & sys admin
http://almirkaric.com & http://twitter.com/redduck666

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

configuratioin fastcgi C/C++ program

JCR June 01, 2010 03:31PM

Re: configuratioin fastcgi C/C++ program

Almir Karic June 01, 2010 07:36PM

Re: configuratioin fastcgi C/C++ program

JCR June 02, 2010 09:52AM

Re: configuratioin fastcgi C/C++ program

Almir Karic June 02, 2010 11:52AM

Re: configuratioin fastcgi C/C++ program

JCR June 02, 2010 12:17PM

Re: configuratioin fastcgi C/C++ program

JCR June 02, 2010 03:00PM

Re: configuratioin fastcgi C/C++ program

Roger Hoover June 02, 2010 03:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready