[Answer]-Serving django app with apache2+mod_wsgi

1πŸ‘

βœ…

I just setup my site www.noobniche.com on Linode using WSGI. Unfortunately I’m not at home to compare my setup, if you’re still having problems tonight I can look into it. From memory in my case, I had to enable by adding to sites-enabled and sites-available.

the structure should look something similar to this;

webapps(root directory)
    nichesite
        static
        django_project_name
            --> myproject.wsgi
            --> settings.py
            --> urls.py
            --> views.py
        manage.py

it seems your .wsgi file is located in your root directory, when it should be located within your django project folder.

πŸ‘€Chris Hawkes

0πŸ‘

So it looks as if you have conflicting settings for WSGIScriptAlias – one in httpd.conf, pointing to the right path for your wsgi file, and one in your sites-enabled file, pointing to the wrong path (/var/ instead of /srv/).

You should remove the one in httpd.conf and move it to sites-enabled/quickerhub.com so that the version there is correctly pointing to /srv/.

Leave a comment