How to configure Apache to execute perl files named as .html

 

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.

Moving your apps to Amazon or Miscrosoft Clouds?

We can help you analyze your existing infrastructure, identify the cost savings we can achieve by migrating to a cloud provider. We can then execute end-to-end migration plan of your infrastructure and bringing down your TCO.

Cloud Computing

Ready for IPv6 Migration?

The Internet is running out of the equivalent of phone numbers - familiar problem, non-trivial solution.

The world has to move to IPv6, with its 128-bit addresses. But that's easier said than done.

IPv6 Migration

Are you fluent in "Linux"?

Learn Linux from a leading expert and quickly master you Linux skills.

Learn how to simplify your workflow and increase your productivity using tips and techniques of the pros.

Ideal training for Corporate IT Beginners and Advanced IT Admins alike.

Corporate Linux Training

Who's Online

We have 3 guests and no members online