Make sure you have the conf right. Look in apache/conf/httpd.conf, or it could be elsewhere, make sure you load the cgi-module, and look for other cgi related things in https.conf.