Are you sure that curl localhost/hello will contact your http server?
I would try curl http://localhost/hello.
Still, your webserver does not seem to be set up to treat hello as a CGI file. Maybe naming the file hello.cgi would help, if the webserver by default is set up to treat executable files named .cgi as programs producing output.
In reply to Re: CGI on OpenBSD 5.6 httpd
by Corion
in thread CGI on OpenBSD 5.6 httpd
by slamet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |