I cannot find any documentation on how to get CGI going on OpenBSD 5.6 httpd. (Starting with 5.6, OpenBSD ships its own http daemon.) And I am a newbie with CGI.
I have something like the following: hello
!#/usr/bin/perl
print "Content type: text/html";
print "hello world";
I have done "chmod 755 hello", but when I call the address
curl localhost/hello
I got the whole file content, instead of just "hello world".
I have poured over manpages for httpd and httpd.conf, but still cannot fix this. Many thanks for your help.