To configure Apache to execute perl files named as .html you will need to follow the below steps:
Under standard /var/www/html directory we added "proc" directory. Our goal is to make executable all of the html files in that directory.
To accomplish that, right after the below piece of config in "/etc/httpd/conf/httpd.conf":
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
add the below directive:
<Directory "/var/www/html/proc">
Options +ExecCGI
AddHandler cgi-script .cgi .pl .html
</Directory>
The above directive will execute files with extensions *.cgi, *.pl, and *.html to execute as CGI scripts.
We have 3 guests and no members online