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/test-cgi
which uses /bin/sh, chmod it appropriately and copy /bin/sh to
/var/www/bin/sh (/bin/sh *is* statically linked)"

Tried this, same error: "502 Bad Gateway"


On Tue, Jul 9, 2013 at 8:54 PM, Florian Obser <flor...@narrans.de> wrote:

> 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/faq/faq10.html#httpdchroot
>
> If you just want to see if nginx works try /var/www/cgi-bin/test-cgi
> which uses /bin/sh, chmod it appropriately and copy /bin/sh to
> /var/www/bin/sh (/bin/sh *is* statically linked)
>
> --
> I'm not entirely sure you are real.

Reply via email to