title: A simple website with python using SimpleHTTPServer and SocketServer, how to only display the html file and not the whole directory?
body: <p>How do I only display <code>simplehttpwebsite_content.html</code> when I visit <code>localhost:8080</code>? So that I can't see my filetree, only the webpage. All these files are in the same directory btw.</p>
  
  <p>simplehttpwebsite.py</p>
  
  <pre><code>#!/usr/bin/env python
  import SimpleHTTPServer
  import SocketServer
  
  Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
  server = SocketServer.TCPServer(('0.0.0.0', 8080), Handler)
  
  server.serve_forever()
  </code></pre>
  
  <p>simplehttpwebsite_content.html</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  
  &lt;html&gt;
    &lt;head&gt;
      &lt;link rel="stylesheet" type="text/css" href="simplehttpwebsite_style.css"&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      This is my first web page
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>simplehttpwebsite_style.css</p>
  
  <pre><code>body{background-color:blue;}
  </code></pre>