title: running Apache + Bottle + Python
body: <p>I'm trying to run Bottle.py with Apache and mod_wsgi.</p>
  
  <p>I'm running it on windows, using a xampp. python v2.7</p>
  
  <p>My Apache config in httpd:</p>
  
  <pre><code>&lt;VirtualHost *&gt;
      ServerName example.com
      WSGIScriptAlias / C:\xampp\htdocs\GetXPathsProject\app.wsgi
      &lt;Directory C:\xampp\htdocs\GetXPathsProject&gt;
              Order deny,allow
              Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>My app.wsgi code:</p>
  
  <pre><code>import os
  os.chdir(os.path.dirname(__file__))
  import bottle
  application = bottle.default_app()
  </code></pre>
  
  <p>My hello.py:</p>
  
  <pre><code>from bottle import route
  @route('/hello')
  def hello():
      return "Hello World!"
  </code></pre>
  
  <p>When I go to <code>localhost/hello</code> I get a 404 error.
  I don't have any other errors on the Apache log file, probably missing something basic.</p>