title: Configuring lighttpd to handle CGI C executables
body: <p>Does anyone know how to configure lighttpd to handle plain CGI executables, in this case written in C? I have compiled a test program (test.cgi) and put it in $HOME/public_html/cgi-bin. I have also enabled the CGI module with <code>lighty-enable-mod cgi</code> and restarted the web server. Still, when requesting <a href="http://localhost/~august/cgi-bin/test.cgi" rel="noreferrer">http://localhost/~august/cgi-bin/test.cgi</a> the program is not run but is instead treated as a static file. Here is my test program by the way:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
     printf("Content-type: text/plain\n\n");
     puts("test...");
     return 0;
  }
  </code></pre>