Apache+Perl的配置

apache+perl配置步骤:
1、加入这两行.如果存在则改成跟这个一样的
Options FollowSymLinks ExecCGI
ScriptInterpreterSource Registry

2、加入Perl
ScriptAlias /cgi-bin/  "D:/perl/bin"
<Directory "D:/project/perl/cgi-bin/">
    AllowOverride All
    Options ALl
    Order allow,deny
    Allow from all
</Directory>

3、能够识别cgi文件
AddHandler cgi-script .cgi .pl .exe

4、网站虚拟目录配置
<VistualHost 127.0.0.1:80>
    DocumentRoot D:/project/perl/cgi-bin/
    ServerName 127.0.0.1:80
</VistualHost>

<Directory "D:/project/perl/cgi-bin/">
    AllowOverride All
    Options ALl
    Order allow,deny
    Allow from all
</Directory>

5、在apache的cgi-bin目录下面加入perl.exe perl5.10.1.exe

你可能感兴趣的:(apache,cgi,perl)