Re: Upstream error: Nginx, slowcgi, and perl/cgi support.

2013-07-09 Thread Florian Obser
On Tue, Jul 09, 2013 at 09:37:06PM +0300, ?zg?r Kazan??? wrote: > And the browser side: > "502 Bad Gateway" > (Actually the same error occurs when trying with any filenames (no matter > exists or not) ended with .cgi. ... and the log probably says "upstream prematurely closed FastCGI stdout". Wha

Re: Upstream error: Nginx, slowcgi, and perl/cgi support.

2013-07-09 Thread Florian Obser
On Tue, Jul 09, 2013 at 09:18:40PM +0300, ?zg?r Kazan??? wrote: > It's the base' perl, > > # perl -v > This is perl 5, version 12, subversion 2 (v5.12.2 (*)) built for > amd64-openbsd > (with 10 registered patches, see perl -V for more detail) > > And using nginx with chroot-disabled, (-u) didn't

Re: Upstream error: Nginx, slowcgi, and perl/cgi support.

2013-07-09 Thread Matthew Weigel
On 2013-07-09 13:18, Özgür Kazanççı wrote: And using nginx with chroot-disabled, (-u) didn't help neither. That isn't surprising, because nginx's chroot won't affect things run by slowcgi (which chroots itself separately). Also, when running with nginx chroot disabled, did you also adjust pat

Re: Upstream error: Nginx, slowcgi, and perl/cgi support.

2013-07-09 Thread Özgür Kazanççı
It's the base' perl, # perl -v This is perl 5, version 12, subversion 2 (v5.12.2 (*)) built for amd64-openbsd (with 10 registered patches, see perl -V for more detail) And using nginx with chroot-disabled, (-u) didn't help neither. "If you just want to see if nginx works try /var/www/cgi-bin/tes

Re: Upstream error: Nginx, slowcgi, and perl/cgi support.

2013-07-09 Thread Florian Obser
On Tue, Jul 09, 2013 at 08:30:03PM +0300, BSD Kazakhstan wrote: > Thinking of chroot(), I have even tried adding a copy of perl binary to: > > # ls -l /var/www/usr/bin/ > -rwxr-xr-x 1 root daemon 10725 Jul 9 19:15 perl your perl is probably not statically linked, see http://www.openbsd.org/fa

Upstream error: Nginx, slowcgi, and perl/cgi support.

2013-07-09 Thread BSD Kazakhstan
Hello everyone. I'm having troubles of setting cgi/perl support for Nginx, on OpenBSD 5.3. I get "502 Bad Gateway" on the browser when I type /cgi-bin/test.cgi - which is a simple "Hello World" cgi file, doesn't work with my setup. The error.log says: [error] 29912#0: *6 upstream prematurely clo