This should go in a sites-enabled file, inside a VirtualHost:
ScriptAlias /stasis-cgi/ /home/sears/stasis/lang/perl/cgi-bin/
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
This is the contents of my /etc/apache2/mods-enabled/fastcgi.conf
AddHandler fastcgi-script .fcgi
#FastCgiWrapper /usr/lib/apache2/suexec
FastCgiIpcDir /var/lib/apache2/fastcgi
FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -processSlack 1
Note that the fastcgi scripts are currently hardcoded to run in ~sears/stasis/www-data2