.htaccess - Allow cgi scripts without extensions to run

I have a bunch of old Perl web scripts that do NOT have an extension.  Even though the permissions are set to 755 the code is outputted instead of the script running.

Could this be fixed with .htaccess? If so, what should I place in .htaccess?
LVL 16
hankknightAsked:
Who is Participating?
 
caterham_wwwCommented:
> Could this be fixed with .htaccess? If so, what should I place in .htaccess?

To pass any resource to mod_cgi,

SetHandler cgi-script
0
 
ahoffmannCommented:
# assuming your files in /cgi-bin/


 Options +ExecCGI
  ...

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.