title: apache + wsgi + django : Client denied by server configuration
body: <p>I'm getting a <strong>403</strong> error with my django project.</p>
  
  <p>The only line I get in my error log is :</p>
  
  <pre><code>AH01630: client denied by server configuration: /srv/http/www/src/myproject/preprod_wsgi.py
  </code></pre>
  
  <p>The permissions for this file are :</p>
  
  <pre><code>-rwxr-xr-x 1 root root  552 Jul 30 04:24 preprod_wsgi.py
  </code></pre>
  
  <p>And the apache (VERSION : 2.4) conf file contains (amongst other things) :</p>
  
  <pre><code>LoadModule wsgi_module modules/mod_wsgi.so
  
  &lt;IfModule unixd_module&gt;
      User http
      Group http
  &lt;/IfModule&gt;
  
  &lt;Directory /&gt;
      AllowOverride none
      Require all denied
  &lt;/Directory&gt;
  
  #
  # Others
  #
  
  Alias /robots.txt /srv/http/www/htdocs/static/robots.txt
  Alias /favicon.ico /srv/http/www/htdocs/static/favicon.ico
  
  
  Alias /media/ /srv/http/www/htdocs/media/
  Alias /static/ /srv/http/www/htdocs/static/
  
  
  &lt;Directory "/srv/http/www/htdocs/static"&gt;
             Require all granted
  &lt;/Directory&gt;
  
  &lt;Directory "/srv/http/www/htdocs/media"&gt;
             Require all granted
  &lt;/Directory&gt;
  
  &lt;Files "/srv/http/www/src/myproject/preprod_wsgi.py"&gt;
         Require all granted
  &lt;/Files&gt;
  
  #
  # WSGI
  #
  
  WSGIDaemonProcess myproject python-path=/srv/http/www/src
  WSGIScriptAlias / /srv/http/www/src/myproject/preprod_wsgi.py
  WSGIPythonPath /srv/http/www/src
  
  DocumentRoot "/srv/http/www/htdocs"
  &lt;Directory "/srv/http/www/htdocs"&gt;
      Options Indexes FollowSymLinks
      AllowOverride None
      Require all granted
  &lt;/Directory&gt;
  
  ErrorLog "/srv/http/www/logs/error_log"
  CustomLog "/srv/http/www/logs/access_log" common
  
  LogLevel warn
  </code></pre>
  
  <p>Here is also the content of my <strong>preprod_wsgi.py</strong> file :</p>
  
  <pre><code>"""
  WSGI config for soisbault project.
  
  It exposes the WSGI callable as a module-level variable named ``application``.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
  """
  
  import os, sys
  
  from django.core.wsgi import get_wsgi_application
  
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.preprod_settings")
  
  application = get_wsgi_application()
  </code></pre>
  
  <p><code>ALLOWED_HOSTS</code> is also set in my <code>preprod_settings.py</code>.</p>
  
  <p>I tried to add access to this file with <code>&lt;Files&gt;</code> directive, and did a <code>chmod 755</code> on it. But I can't figure out what I could do more.</p>
  
  <p>How could I fix this? Feel free to ask more details if necessary.</p>
  
  <p>Thank you in advance.</p>