I am not sure about your wsgi Script alias ending in a '.py'. I also don't see the directory of the wsgi script being set with the apache directive <Directory>
Here is mine:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.my-website-domain.com
DocumentRoot "/usr/local/www/apache22/data"
WSGIDaemonProcess www.my-website-domain.com threads=15 display-name=%{GROUP}
WSGIProcessGroup www.my-website-domain.com
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / "/usr/local/django/mod_wsgi/django.wsgi"
<Directory "/usr/local/django/mod_wsgi">
Order deny,allow
Allow from all
</Directory>
Alias /media/ "/usr/local/django/media/"
<Directory "/usr/local/django/media">
Order allow,deny
Options -Indexes
Allow from all
</Directory>
</VirtualHost>
On Tue, Jan 5, 2010 at 8:39 AM, dcorbe <[email protected]> wrote:
> Hi,
>
> I've tried the (relatively straight-forward-looking) steps to get
> django and mod_wsgi working together with little success thus far.
> I'm trying to run a simple django application from my Apache web
> server. The documentation doesn't make it clear whether user= and
> group= needs to be set to the webserver's uid/gid (which it currently
> is) or whether it needs to be set to the uid/gid that own the
> application (which I tried with no success). Beyond that I'm not sure
> how to proceed.
>
> When I attempt to hit the site (http://blog.corbe.net) it simply times
> out.
>
> It appears as if mod_wsgi is configured and installed properly:
>
> [Tue Jan 05 08:24:29 2010] [notice] Apache/2.2.13 (Unix) mod_ssl/
> 2.2.13 OpenSSL/0.9.8e DAV/2 mod_wsgi/3.1 Python/2.5.4 PHP/5.2.10 SVN/
> 1.6.5 configured -- resuming normal operations
>
> I'm configuring the system like so:
>
> <VirtualHost 206.71.169.114>
> ServerName blog.corbe.net
> DocumentRoot /usr/local/apache2/htdocs
>
> Alias /media/ /usr/home/dcorbe/corbenet/www/media/
> Alias /download/ /usr/home/dcorbe/corbenet/www/
> download/
> Alias /static/ /usr/home/dcorbe/corbenet/byteflow/
> static/
>
> WSGIDaemonProcess site-corbenet user=daemon group=daemon
> threads=10
> WSGIProcessGroup site-corbenet
> WSGIScriptAlias / /usr/home/dcorbe/corbenet/
> byteflow-wsgi.py
>
> ErrorLog logs/blog-error_og
> CustomLog logs/blog-access_log combined
> </VirtualHost>
>
> Django is installed globally on this system (it appears in site-
> python) and the byteflow-wsgi.py contains the following:
>
> #!/usr/local/bin/python
>
> import os, sys
>
> sys.path.append('/usr/home/dcorbe/corbenet/byteflow')
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
>
> Any help is appreciated. Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>
>
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

