mod_fcgid
LoadModule fcgid_module libexec/apache2/mod_fcgid.so
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot /var/www/MyApp/root
ServerName 192.168.0.1
ErrorLog /var/www/log/error_log
CustomLog /var/www/log/access_log common
Alias /static /var/www/MyApp/root/static
<Location /static>
SetHandler default-handler
</Location>
Alias / /var/www/MyApp/script/myapp_fastcgi.pl/
<Location />
Options All
AllowOverride All
Order allow,deny
Allow from all
AddHandler fcgid-script .pl
</Location>
</VirtualHost>