php Scripte werden über proxy_fcgi erfolgreich ausgeliefert, aber Perl Scripte werde plain Text im Browser ausgegeben. Warum wird Perl nicht richtig interpretiert. Ich bin hier leider mit meinem Latein am Ende. Wer kann unterstützen?
Zum Einsatz kommt:
Debian squeeze mit Apache2.4 und mod_proxy_fcgi sowie php7.0-fpm
Meine apache config:
- Code: Select all
<VirtualHost 192.168.1.1:80>
ServerAdmin webmaster@munin.home
ServerName munin.home
ServerAlias www.munin.home
DocumentRoot /var/www/munin.home/html
<Directory /var/www/munin.home/html>
Options -Indexes +FollowSymLinks +MultiViews
AddHandler perl-script .pl .cgi
Require all granted
</Directory>
ScriptAlias "/munin-cgi/hello.pl" "/usr/lib/munin/cgi/hello.pl"
<Location /munin-cgi/hello.pl>
Options +ExecCGI
SetHandler "proxy:fcgi://127.0.0.1:9000/"
AddHandler cgi-script .pl .cgi
Require all granted
</Location>
ScriptAlias "/munin-cgi/test.pl" "/usr/lib/munin/cgi/test.pl"
<Location /munin-cgi/test.pl>
Options +ExecCGI
SetHandler "proxy:fcgi://127.0.0.1:9000/"
AddHandler cgi-script .pl .cgi
Require all granted
</Location>
ScriptAlias "/munin-cgi/" "/usr/lib/munin/cgi/"
<Directory /munin-cgi/>
Options +ExecCGI -Indexes +FollowSymLinks +MultiViews
SetHandler "proxy:fcgi://127.0.0.1:9000/"
AddHandler perl-script .pl .cgi
Require all granted
</Directory>
ErrorLog /var/www/munin.home/log/error.log
CustomLog /var/www/munin.home/log/access.log combined
</VirtualHost>