title: Web.py not working with Apache using mod_wsgi
body: <p>I am trying to get web.py to work with Apache. I'm following the instructions here: <a href="http://webpy.org/cookbook/mod_wsgi-apache" rel="nofollow" title="web.py + apache with mod_wsgi">Web.py + Apache with mod_wsgi</a></p>
  
  <p>This is what my httpd.conf looks like right now:</p>
  
  <pre><code>LoadModule wsgi_module modules/mod_wsgi.so
  
  WSGIScriptAlias /justcompare /var/www/justcompare/code.py
  
  Alias /justcompare/static /var/www/justcompare/static
  AddType text/html .py
  
  &lt;Directory /var/www/justcompare/&gt;
      Order deny,allow
      Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>My code.py can be seen <a href="http://pastebin.com/HP0NGiPW" rel="nofollow" title="here">here</a>. The server returns a 404 not found when I try to visit [server's ip]/justcompare. Apache's error log is a little more enlightening. It says:</p>
  
  <pre><code>[Sun Nov 24 03:15:40 2013] [error] [client 192.168.1.100] mod_wsgi (pid=5489): Target WSGI script '/var/www/justcompare/code.py' does not contain WSGI application 'application'.
  </code></pre>
  
  <p>What am i doing wrong?</p>