On 5 October 2012 01:56, Aaron Mason <simplersolut...@gmail.com> wrote: > On Fri, Oct 5, 2012 at 5:34 AM, Ville Valkonen <weezeld...@gmail.com> wrote: >> On 4 October 2012 20:36, Jiri B <ji...@devio.us> wrote: >>> On Thu, Oct 04, 2012 at 08:20:43PM +0300, Ville Valkonen wrote: >>>> Hi, >>>> >>>> I've configured Nginx and FCGI to run some C/C++ apps, well almost. >>>> >>>> When navitaging to http://host.foo/weezel/progut/default.cgi nginx's error >>>> log >>>> states the following (below there is test.c, test.c == default.cgi): >>>> >>>> 2012/10/04 16:52:22 [error] 26690#0: *14 kevent() reported that connect() >>>> failed (61: Connection refused) while connecting to upstream, client: >>>> 192.168.50.102, server: host.foo, request: "GET /weezel/progut/ HTTP/1.1", >>>> upstream: "fastcgi://127.0.0.1:9001", host: "host.foo" >>> >>> Not sure but is your dns working inside chroot? >>> >>> jirib >> >> I tried the following: mkdir /var/www/etc && cd /var/www/etc && sudo cp -p >> /etc/hosts /etc/resolv.conf . >> but no success. Any other hints? >> >> -- >> Ville >> > > If you type "netstat -an" do you see 127.0.0.1:9001 showing as "LISTEN"? > > -- > Aaron Mason - Programmer, open source addict > I've taken my software vows - for beta or for worse
$ netstat -an|grep 9001 tcp 0 0 127.0.0.1.9001 *.* LISTEN So that should be okay.