title: Apache mod_wsgi error: Forbidden You don't have permission to access / on this server
body: <p>I'm using Ubuntu 10.04.<br>
  I create a django project under <code>/home/wong2/Code/python/django2/</code> named <code>atest</code><br>
  and create a wsgi file <code>setting.wsgi</code> in the same directory<br>
  Here is the content of <code>setting.wsgi</code> :  </p>
  
  <pre><code>import os 
  import sys
  
  path = '/home/wong2/Code/python/django2'
  
  if path not in sys.path:
      sys.path.append(path)
  os.environ["DJANGO_SETTINGS_MODULE"] = "atest.settings" 
  from django.core.handlers.wsgi import WSGIHandler 
  application = WSGIHandler()
  </code></pre>
  
  <p>and here is what I add to my my httpd.conf:  </p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName localhost
      WSGIScriptAlias / /home/wong2/Code/python/django2/setting.wsgi
      &lt;Directory /&gt;
          Options FollowSymLinks
          AllowOverride None
          Order deny,allow  
          Allow from all 
      &lt;/Directory&gt;
      &lt;Directory "/home/wong2/Code/python/django2/atest"&gt;
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The problem is, when I visit <a href="http://localhost" rel="noreferrer">http://localhost</a>, it says </p>
  
  <blockquote>
    <p>Forbidden</p>
    
    <p>You don't have permission to access /
    on this server.</p>
  </blockquote>
  
  <p>Thanks a lot.</p>