The file you're looking for is /Library/WebServer/Configuration/apache.conf
A search for cgi-bin will quickly find that the dir /cgi-bin/ on your webserver is linked to /Library/WebServer/CGI-Executables, so that's where you'd put your cgis.
Can't make the examples work? They not marked as...