LinuxSir.cn,穿越时空的Linuxsir!

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

perl 错误大家来看

[复制链接]
发表于 2006-12-1 20:43:51 | 显示全部楼层 |阅读模式
# service apache2 restart
[Fri Dec 01 20:37:18 2006] [warn] The ScriptAlias directive in /etc/apache2/conf.d/mod_perl.conf at line 11 will probably never match because it overlaps an earlier ScriptAlias.
Syntax OK
Shutting down httpd2 (waiting for all children to terminate)         done
Starting httpd2 (prefork) [Fri Dec 01 20:37:19 2006] [warn] The ScriptAlias directive in /etc/apache2/conf.d/mod_perl.conf at line 11 will probably never match because it overlaps an earlier ScriptAlias.
                                                                     done


less /etc/apache2/default-server.conf

ScriptAlias /perl/ "/srv/www/perl/"
<Directory "/srv/www/perl">
#AllowOverride None
Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#aOptions +ExecCGI -Includes Followsymlinks
Order allow,deny
Allow from all
</Directory>


<Directory "/srv/www/perl-lib">
    AllowOverride None
    Options None
    Order allow,deny
    allow from all
</Directory>

<IfModule mod_perl.c>
    PerlRequire "/etc/apache2/mod_perl-startup.pl"
   
    ScriptAlias /perl/ "/srv/www/perl/"
    <Location /perl>
        #mod_perl mode
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        PerlOptions +ParseHeaders
        Options +ExecCGI
    </Location>
   
    ScriptAlias /cgi-perl/ "/srv/www/cgi-bin/"
    <Location /cgi-perl>
        #perl cgi mode
        SetHandler  perl-script
        PerlResponseHandler ModPerl:erlRun
        PerlOptions +ParseHeaders
        Options +ExecCGI
    </Location>
   
    # The /cgi-bin/ ScriptAlias is already set up in httpd.conf
/etc/apache2/conf.d/mod_perl.conf lines 1-29/33 95%
发表于 2006-12-5 20:59:36 | 显示全部楼层
ScriptAlias /perl/ "/srv/www/perl/"

别名 /perl/ 定义了两遍。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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