Perl Apache: skrypt Perla wyświetlany jako zwykły tekst

Podczas konfiguracji za pomocąapache iperl cgi scripts, nie wiem dlaczegoindex.cgi/index.pl są wyświetlane jako zwykły tekst zamiast ich wykonywania. Kiedy położyłemhttp://localhost w przeglądarce wyświetla poniżej kodu, zamiast go wykonywać.

List item
    #!C:/Dwimperl/perl/bin/perl.exe -w

     print "Content-type: text/html\n\n";
        print <<HTML;
        <html>
        <head>
        <title>A perl web page</title>
        </head>
        <body>
        <h3>A hello world form perl</h3>
        </body>

        HTML
        exit;

To są częścihttpd.conf plik, który edytowałem przez większość czasu (po przeczytaniu różnych odnośników online, samouczków)

# This should be changed to whatever you set DocumentRoot to.
<Directory "D:\webserver">

Listen 80
ServerName localhost:80
LoadModule cgi_module modules/mod_cgi.so

# First, we configure the "default" to be a very restrictive set of 
# features.  
<Directory />
    Options FollowSymLinks +ExecCGI
    AllowOverride None
</Directory>

DirectoryIndex index.html index.html.var index.cgi index.pl

AccessFileName .htaccess

# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi .pl

ScriptAlias /cgi-bin/ "C:/Apache/Apache2/cgi-bin/"

questionAnswers(5)

yourAnswerToTheQuestion