Apache returns the perl script source instead of execute the script when the request comes from chrome

Posted by Kartoch on Server Fault See other posts from Server Fault or by Kartoch
Published on 2011-01-10T12:13:40Z Indexed on 2011/01/10 12:55 UTC
Read the original article Hit count: 383

Filed under:
|
|
|
|

I've just finish to install awstats on my web server, and it runs fine using firefox. But when I try to open the awstats page with chrome, the perl source script is downloaded (instead of being executed). it seems the MIME requested by Chrome gave a different behavior compared to Chrome. Any idea ?

Interesting part of the Apache configuration file:

<Directory "/var/www/cryptis-https-root/admin-awstats">
  Options Indexes FollowSymLinks MultiViews  ExecCGI
  AllowOverride None
  Order allow,deny
  Allow from X.Y
</Directory>

Alias /awstatsclasses "/var/www/awstats/wwwroot/classes/"
Alias /awstatscss "/var/www/awstats/wwwroot/css/"
Alias /awstatsicons "/var/www/awstats/wwwroot/icon/"
ScriptAlias /admin-awstats/ "/var/www/awstats/wwwroot/cgi-bin/"

<Directory "/var/www/awstats/wwwroot">
  Options None ExecCGI
  AllowOverride None
  Order allow,deny
  Allow from X.Y
</Directory>

I've tried to add the following line in the apache configuration file but it has no effect:

AddHandler cgi-script .pl

© Server Fault or respective owner

Related posts about apache2

Related posts about perl