Nothing in wsgi.conf.
Relevant bits of apache conf:
<VirtualHost *:80>
....
WSGIScriptAlias /awma /home/paul/src/awma-apache/internationalguidelines/wsgi.py
....
</VirtualHost>
Nothing in /var/log/apache2/error.log
Access.log just says:
152.91.9.9 - - [23/May/2014:08:27:17 +1000] "GET /awma/ HTTP/1.1" 404 1476 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
152.91.9.9 - - [23/May/2014:08:27:22 +1000] "GET /awma/times HTTP/1.1" 404 1483 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
404 debug pages like:
Using the URLconf defined in internationalguidelines.urls, Django tried these URL patterns, in this order:
1. ^$ [name='index']
2. ^times$ [name='times']
3. ^admin/
AND: The current URL, , didn't match any of these
Although weirdly, admin works:
152.91.9.9 - - [23/May/2014:08:28:19 +1000] "GET /awma/admin/ HTTP/1.1" 200 1450 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
But when I change the WSGIScriptAlias to:
WSGIScriptAlias / /home/paul/src/awma-apache/internationalguidelines/wsgi.py
Everything works fine:
152.91.9.9 - - [23/May/2014:08:37:22 +1000] "GET / HTTP/1.1" 200 1156 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
152.91.9.9 - - [23/May/2014:08:37:27 +1000] "GET /times HTTP/1.1" 200 1550 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
152.91.9.9 - - [23/May/2014:08:37:39 +1000] "GET /admin/ HTTP/1.1" 200 1446 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
WSGI file contains nothing unusual:
import os
import sys
sys.path.append('/home/paul/src/awma-apache/')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "internationalguidelines.settings_prod")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
I was trying to do some tricky stuff with virtualenv initially, but I still see the problem with the
config stripped back very simple, as described above.
P.