- 论坛徽章:
- 0
|
linux下如何讓apach支持cgi
#ScriptAlias /cgi/ "/home/web/cgi/" <--這個不要,所以加上#
<IfModule mod_cgid.c>;
#
# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>;
# for setting UNIX socket for communicating with cgid.
#
#Scriptsock logs/cgisock
</IfModule>;
# "/usr/local/httpd/cgi-bin" should be changed to whatever your Scr
# CGI directory exists, if you have that configured.
<Directory "/你要放置cgi程式的地方,例如:/www/cgi/">;
AllowOverride None
Options ExecCGI <--这個一定要加上去
Order allow,deny
Allow from all
</Directory>;
AddHandler cgi-script .cgi <---將這行的#去掉 |
|