在RH9 Apache下怎么配置PERL啊

sheerfish999 2005-02-24 09:33:10
在RH9 Apache下怎么配置PERL啊,好象默认是不解释pl文件的吧
...全文
37 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
honeyday 2005-02-24
  • 打赏
  • 举报
回复
下面是httpd.conf里面配置全局访问cgi的写法。
#
# AddHandler allows you to map certain file extensions to "handlers",
# actions unrelated to filetype. These can be either built into the server
# or added with the Action command (see below)
#
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
AddHandler cgi-script .cgi .pl
honeyday 2005-02-24
  • 打赏
  • 举报
回复
只要配置一下httpd.conf就可以了。
默认可以执行cgi的目录是/cgi-bin/
具体是要打开exec的权限。
在linux下面,默认是不打开的。需要使用ScriptAlias来设定一个可以执行cgi的虚拟目录。
当然也可以打开全局的exec权限,不过这样做比较危险。

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧