apache的安裝過(guò)程省略,包含./configure ,prefix指定安裝路徑;make然后make install.
如何支持fastcgi?
1,下載mod_fastcgi.so,放到 modules目錄下面;
2,修改con/httpd.conf,加上 LoadModule fastcgi_module modules/mod_fastcgi.so;
3,添加一虛擬主機(jī),加上:
<VirtualHost *:80>
ServerAdmin
test@test.com
DocumentRoot /usr/local/se_conn_01/xhtdocs/video.test.com/htdocs
ServerName video.test.com
ScriptAlias /content "/usr/local/se_conn_01/xhtdocs/video.test.com/htdocs/cgi"
<Directory />
Options Includes FollowSymLinks
AllowOverride None
</Directory>
ErrorLog logs/tdynamic.test.com-error_log
</VirtualHost>
FastCgiServer /usr/local/se_conn_01/xhtdocs/video.test.com/htdocs/cgi -processes 1
其中ScriptAlias 將訪問(wèn)路徑跟cgi映射起來(lái);
FastCgiServer默認(rèn)起一個(gè)content cgi的子進(jìn)程
值得一提的是新版本apache不支持fastcgi了。要安裝2.0*版本