Express web server is returning status 200 when it should 404
<p>I know people are scanning my server to use it as an open proxy. I am running nodejs through an express framework on an amazon cloud machine. I am using iptables to port forward port 80 to 8080 so I can avoid running it as a root user.</p>

<pre><code>GET http://www.baidu.com/ 200 1.484 ms - 6482
GET http://yahoo.com/ 200 1.557 ms - 6482
GET /css/index.css 304 1.310 ms - -
</code></pre>

<p>Obviously yahoo and baidu are not part of my domain so shouldn't they return 404? </p>

<p>When I use</p>

<pre><code>curl --proxy &lt;&lt;mywebsite&gt;&gt; http://yahoo.com
</code></pre>

<p>I get the html for my root page instead of yahoo. Why is this not 404ing?</p>