Would be nice if you showed some of the configurations you tried. Anyways the wrapper thing is called CGI Common Gateway Interface. I checked on the manual of boa and found two ways one could acomplish this.
http://www.boa.org/documentation/boa-2.html#ss2.3
Use the ScriptAlias directive
Code:
DocumentRoot /var/www
ScriptAlias cgi-bin /var/www/cgi-bin
Or with the AddType directive
Code:
AddType application/x-httpd-cgi .cgi
Dunno if this one will work
The main important thing is how the cgi files are build up. The program needs to be executable by the webserver (chmod a+x ./asdf.cgi) and use the shabang way to be run ( dunno how to phrase that good but an example will mak it clear)
PHP Code:
#!/usr/local/bin/php-cgi
<?php
phpinfo();
?>
The first line needs to have the path to the binary that will interpret the file.
I hope you set up the error log of boa and don't forget to put the CGI log directive into it.
Regards Zhjim