title: SimpleHTTPServer Error 404 - "GET /d3/d3.v3.js HTTP/1.1" 404
body: <p>I am learning D3 and I am trying to set up a local server on a mac machine to host a webpage. I follow these steps</p>
  
  <ol>
  <li>Set up the local server using: <code>python -m SimpleHTTPServer 8888 &amp;</code></li>
  <li>Access the index file using: <code>http://localhost:8888</code></li>
  </ol>
  
  <p>Here are the problems I am facing.</p>
  
  <ul>
  <li><p>When I try step 2 I get the following messages on terminal</p>
  
  <pre><code>127.0.0.1 - - [25/Aug/2014 12:14:52] "GET / HTTP/1.1" 200 -
  127.0.0.1 - - [25/Aug/2014 12:14:52] code 404, message File not found
  127.0.0.1 - - [25/Aug/2014 12:14:52] "GET /d3/d3.v3.js HTTP/1.1" 404 -
  127.0.0.1 - - [25/Aug/2014 12:14:53] code 404, message File not found
  127.0.0.1 - - [25/Aug/2014 12:14:53] "GET /favicon.ico HTTP/1.1" 404 -
  </code></pre></li>
  <li><p>When I open the index file directly it does not open via the local
  web server and instead opens with the following address
  "file://.../Users/d3_book/index.html"
  Here is the code (without the html tags) for my index file</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;D3 Page Template&lt;/title&gt;
      &lt;script type="text/javascript" src="../d3/d3.v3.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script type="text/javascript"&gt;
          // D3 code will go here
      &lt;/script&gt;
  &lt;/body&gt; 
  </code></pre></li>
  </ul>