Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django/Mod_WSGI 'client denied by server configuration'

I'm attempting to set up Apache 2.2, Django 1.1.2 and Gentoo. I wish to serve my project with the address: /comics

I followed the mod_wsgi directions in the django documentation to the letter, coming up with these files:

/etc/apache2/modules.d/70_mod_wsgi.conf

<IfDefine WSGI>
LoadModule wsgi_module modules/mod_wsgi.so
</IfDefine>

WSGIScriptAlias /comics /home/****/django/comicky/apache/django.wsgi

and

/home/****/django/comicky/apache/django.wsgi
import os
import sys
sys.path.append('/home/****/django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'comicky.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

However, when I attempt to load the page, I get this in /var/log/apache2/error_log:

client denied by server configuration: /home/****/django/comicky/apache/django.wsgi

Any ideas?

like image 877
Michael Westbom Avatar asked Sep 09 '10 01:09

Michael Westbom


1 Answers

Sounds like a permissions issue from your conf file. See, for example:

  • Apache Error: Client denied by server configuration
like image 75
ars Avatar answered Sep 20 '22 11:09

ars