If you wish to execute cgi scripts outside cgi-bin then you will need to add following code in your .htaccess :-

Options +ExecCGI
AddHandler cgi-script cgi py