title: Configure Apache to run ELF executables
body: <p>I've searched for this for a while but have not been able to find a solution. How can I configure Apache to run any ELF executable in the web root as a CGI program? For example, if I write and compile a C program and place it as <code>/var/www/something</code>, I want to be able to visit <code>http://localhost/something</code> and have Apache run the program, outputting the result, instead of prompting me to download the binary.</p>
  
  <p>Edit: I know how to run CGI programs, and those outside of <code>cgi-bin</code>, I just want to find out how to run ELF executables with no extension such as <code>.cgi</code>, possibly using Apache to detect the magic of the file.</p>