Apache2中的配置FastCGI

来源:互联网 发布:局域网团队协作软件 编辑:程序博客网 时间:2024/06/05 04:58

具体配置: 


<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的好处是没有频繁开关本身执行进程的开销。

原创粉丝点击