Hey,

I'm running Nginx which proxies Apache and on my website, I get the
following error when I tail the Apache log:

[Mon Nov 16 23:51:08 2009] [error] [client 127.0.0.1] No WSGI daemon
process called 'sub.domain.net' has been configured: /var/www/django/
scribblitt/deploy/domain.wsgi

Here's my Apache config for this site:
<VirtualHost *:8080>
    #Basic setup
    ServerAdmin w...@domain.net
    ServerName www.sub.domain.net
    ServerAlias sub.domain.net

    <Directory /var/www/django/domain/deploy>
        Order deny,allow
        Allow from all
    </Directory>

    LogLevel warn
    ErrorLog  /var/log/apache2/sub.domain.net.error.log
    CustomLog /var/log/apache2/sub.domain.net.log common

    WSGIDaemonProcess sub.domain.net user=www-data group=www-data
threads=25
    WSGIProcessGroup sub.domain.net

    WSGIScriptAlias / /var/www/django/domain/deploy/domain.wsgi
</VirtualHost>

Thinking permissions were the problem, I ran: # chown -Rf www-data:www-
data /var/www/django/
and then: # chmod -Rf 755 /var/www/django/
after restarting Apache, I receive the same error.

Here's my wsgi file:
import os
import sys
import site

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['PYTHON_EGG_CACHE'] = '/var/www/django/.python-eggs'

site.addsitedir('/var/www/django/domani/env/lib/python2.6/site-
packages')
sys.path.append('/var/www/django/domain/src')

import django.core.handlers.wsgi
_application = django.core.handlers.wsgi.WSGIHandler()

def application(environ, start_response):
        environ['wsgi.url_scheme'] = environ.get('HTTP_X_URL_SCHEME',
'http')
   return _application(environ, start_response)

Any ideas?

Thanks in advance.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.


Reply via email to