具体配置:
<Directory "/opt/wwwroot/sss.xxx.com/fast-cgi">
Options ExecCGI
AddHandler fastcgi-script .fcg
</Directory>
安装
$ cd <mod_fastcgi_dir>
$ cp Makefile.AP2 Makefile
$ make top_dir=/usr/local/app/apache2/
$ make install top_dir=/usr/local/app/apache2/
fastcgi在apache中总共有3中配置,动态,静态,外部的,如果没有具体说明就是动态的,上面这个是动态的配置,任何fcg结尾的程序都会被认为是fastcgi类型的程序来运行,fastcgi的好处是没有频繁开关本身执行进程的开销。