Bonjour,
j'ai créé un fichier index.pl dans /home/ qui contient:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "hello";
et lorsque je tape http://localhost/index.pl dans mon navigateur, il ne le navigue pas mais me propose le satané
"vous avez choisi d'ouvrir index.pl.... que doit faire firefox, l'ouvrir ou l'enregistrer...".
A noter que si je tape http://localhost/index.php ou http://localhost/index.html ça fonctionne.
J'ai copié index.pl en test.pl et là ça marche aussi.
Ma conf d'apache contient:
NameVirtualHost *
ServerName localhost
<VirtualHost *>
...
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
<Directory /home/>
Options ExecCGI FollowSymLinks +SymLinksIfOwnerMatch Indexes
AllowOverride None
Order deny,allow
allow from all
DirectoryIndex index.html index.php index.pl
</Directory>
...
</VirtualHost>
Kezako?