title: Apache Django "client denied by server configuration" error
body: <p>I found a similar question here, but didn't help me. </p>
  
  <p>I basically have apache setup on my OS X. I also have Django installed.</p>
  
  <p>However, when i try to load the page through the browser locally, i get:</p>
  
  <pre><code>Forbidden
  
  You don't have permission to access / on this server.
  </code></pre>
  
  <p>I have an original httpd.conf with the only modification of enabling vhosts in which I have:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
       ServerAdmin webmaster@dummy-host.example.com
       DocumentRoot "/Dropbox/project/www/"
       ServerName touch.loc
    #   ServerAlias www.dummy-host.example.com
       ErrorLog "/Dropbox/project/www/log/error.log"
       CustomLog "/Dropbox/project/www/log/access.log" common
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And the error.log file gives:</p>
  
  <pre><code>[Tue May 03 20:22:56 2011] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /Dropbox/project/www/
  </code></pre>
  
  <p>I read around and it looks like i have to add the following to the httpd.conf:</p>
  
  <pre><code>&lt;Directory /Dropbox/project/www &gt;
  Order deny,allow
  Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>In which case i get:</p>
  
  <pre><code>[Tue May 03 20:27:55 2011] [error] [client 127.0.0.1] client denied by server configuration: /Dropbox/project/www/
  </code></pre>
  
  <p>Can someone help me fix this annoyance? How can I further Investigate it?
  Does it have to do with users/groups?</p>
  
  <p>UPDATE:
  I then added the Options +Indexes and the permissions opened. However when i try to load the page, file structure appears instead of the wsgi file to pickup and load the website. What would be the reason for that?</p>
  
  <p>here is my .wsgi file:</p>
  
  <pre><code> import os
  import sys
  sys.stdout = sys.stderr
  # Add the virtual Python environment site-packages directory to the path
  import site
  site.addsitedir('/usr/lib/python2.6/dist-packages')
  #If your project is not on your PYTHONPATH by default you can add the following
  sys.path.append('/Dropbox/project/www/')
  sys.path.append('/Dropbox/project/www/project')
  
  # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages
  os.environ['PYTHON_EGG_CACHE'] = '/Dropbox/project/www/mod_wsgi/egg-cache'
  os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'
  
  
  
  import django.core.handlers.wsgi
  application = django.core.handlers.wsgi.WSGIHandler()
  </code></pre>