LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 537|回复: 1

怎么让apache 支持cgi?

[复制链接]
发表于 2004-11-8 10:49:50 | 显示全部楼层 |阅读模式
我想让apache 支持 perl 运行, 我就改了一下httpd.conf 如下:
......
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/html/cgi-bin/"
                                                                                
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
AddHandler cgi-script .cgi .pl
<Directory "/var/www/html/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>
.....

当我运行我的perl是, 它提示说:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

请问应该怎样让apache 运行cgi(perl)? 应该怎样配置httpd.conf?
thank you very much !!
发表于 2004-11-8 11:19:40 | 显示全部楼层
你这个是mod_cgi模块,我看问题不大,你的mod_perl模块怎样
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表