Forum Moderators: phranque

Message Too Old, No Replies

Virtual Hosts in Apache2

Running .html files from cgi-bin dir

         

sumeshgupta63

5:29 am on Sep 19, 2011 (gmt 0)

10+ Year Member



I am running virtual host with apache2 on my laptop. I also have a cgi-bin dir configured and am able to rum .cgi, .php, .pl scripts saved in cgi-bin dir. However when I save anything as .html, ex:form1.html in cgi-bin dir, firefox fails to load the page. It shows error 500 with internal server config problem. When I change the file to .php i.e form1.php, there is no problem and the file gets executed in firefox.
Do I need to add any handler or addtype to my virtual host cgi-bin dir so that .html files also get executed?

Thanks for any help in advance.

Sumesh