apache配置ActivePerl虚拟主机访问没有权限

冷瞳 发布于 2013/01/14 22:07
阅读 565
收藏 0

apache配置ActivePerl后,apache默认站点访问.pl正常,访问cgi打不开,虚拟目录连访问cgi-bin的权限都没有

以下是主配置

 ScriptAlias /cgi-bin/ "D:/www/cgi-bin"        #这里我改成虚拟目录也没用


</IfModule>

#
#"D:/WEB/usr/bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.


<Directory "D:/www/cgi-bin">    #这里也改成虚拟目录了
    AddHandler cgi-script .cgi .pl
    Options +ExecCGI
    AllowOverride All
    Options All
    Order allow,deny
    Allow from all
</Directory>

下面是虚拟目录的配置

 

<VirtualHost *:80>

ServerName www.hmylm_bbs.com #域名是自己做的引射
DocumentRoot D:/www
<Directory D:/www>
Options +ExecCGI
AddHandler cgi-script .cgi .pl
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory D:/www/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>
</VirtualHost>

请大牛指教

加载中
返回顶部
顶部