title: How do I serve HTML from cgi-bin?
body: <p>I am running uhttpd on OpenWrt 12.09. I have a shell script at /www/cgi-bin/test that looks like this:</p>
  
  <pre><code>#!/bin/sh
  echo "Content-type: text/html"
  echo "&lt;p&gt;It works!&lt;/p&gt;"
  </code></pre>
  
  <p>I gave the file execute permissions by doing <code>chmod +x</code> on it. Owner is root, and uhttpd is running as root.</p>
  
  <p>Now when I go to <code>http://192.168.1.1/cgi-bin/test</code> I get an error:</p>
  
  <pre><code>The CGI process did not produce any response
  </code></pre>
  
  <p>There are no errors in the system or kernel logs.</p>
  
  <p>I can go to <code>http://192.168.1.1/cgi-bin/luci</code> and get the LuCI login page, so other CGI scripts are working. That file has a different shebang (<code>#!/usr/bin/lua</code>) but both scripts have the same permissions and owner.</p>
  
  <p>What am I doing wrong?</p>