Apache: Setting DocumentRoot to cgi directory results in downloading file instead of executing it.
- by fastmonkeywheels
I have a c-compiled CGI application that I need to execute from the DocumentRoot of my Apache server. The CGI file is called index.cgi and is located at /usr/lib/cgi-bin/index.cgi.
I have the following Directory definition
<Directory "/usr/lib/cgi-bin/">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride None
…