ITPub博客

首页 > IT基础架构 > 网络安全 > .pl & .pm file can be read under apache

.pl & .pm file can be read under apache

原创 网络安全 作者:huakaibird 时间:2007-11-08 16:28:51 0 删除 编辑

When you put .html file on the document root, put .pl& .pm file in a cgi-bin directory under the document root. The user can get the .pl & .pm file through http://host/documentroot/cgi-bin/aaa.pl, so we should add

AddHandler cgi-script .pl or

AddType application/x-httpd-cgi .pl .pm

in apache configure file, then user request http://host/documentroot/cgi-bin/aaa.pl, it can not work, it must through ScriptAlias.

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/545828/viewspace-981306/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    41
  • 访问量
    421192