Previously I have created .pl files specifically to display the script to users.
Now in the new version of apache the file will not display but report
You don't have permission to access /..../file.pl on this server.
The error logs report...
Options ExecCGI is off
Well of course it is off... I don't want to execute it I want to display it. It isn't even executable, just a normal file. If I rename it anything else, it displays fine. It is only a problem when it has a ".pl" suffix!
The web server configuration only has
AddHandler cgi-script .cgi
I do not load the mod_perl module
And in my local .htaccess file I have
AddType text/plain .pl
I can find no other references that could be causing it to be thought of as CGI.
So why is the web server wanting to execute ".pl" file, when I don't want it to! I have not declared it a CGI, as it isn't a CGI, just a plain ordinary file to be served!
This worked fine in previous versions of apache now it doesn't. (Current version RHEL 6, Apache 2.2.15 )
How can I fix it?