in reply to CGI on OpenBSD 5.6 httpd

Thanks for all the input. I fixed the typo on #!, renamed the file name, created cgi-bin dir under the chroot dir (and both have permission mode 755).

Re comment on "curl localhost/..", what I meant was "curl http://ip address/..".

Re slowcgi, according to the manpage, it actually is the implementation of fastcgi. :-)

I suspect there is something on httpd.conf that I am missing, but I copied it from the manpage.

prefork 2 server "default" { listen on egress port 80 } types { text/css css text/html htm html text/txt txt image/gif gif image/jpeg jpg jpeg image/png png application/javascript js application/xml xml }

All in all, I am still stuck.

Replies are listed 'Best First'.
Re^2: CGI on OpenBSD 5.6 httpd
by Anonymous Monk on Jan 03, 2015 at 04:32 UTC
    Re slowcgi, according to the manpage, it actually is the implementation of fastcgi. :-)
    No.
    All in all, I am still stuck.
    httpd doesn't do CGI.

      Actually it does and it has a good sense of humour for the name.

      http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/httpd.conf.5

      Anyway, I just found this blog post. Thanks to all who responded to my inquiry.

      http://www.protoc.org/blog/2014/11/23/first-thoughts-on-the-new-openbsd-httpd-server/

      Cheers