Django Apache and WSGI setup not finding urls?

1k views Asked by At

I am setting up Django on a VPS with Apache and and modwsgi and have this setup for 000-default.conf,

<VirtualHost *:80>
. . .

Alias /static /home/user/myproject/static
<Directory /home/user/myproject/static>
    Require all granted
</Directory>

<Directory /home/user/myproject/myproject>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

WSGIDaemonProcess myproject python-path=/home/user/myproject 
WSGIProcessGroup myproject
WSGIScriptAlias / /home/user/myproject/myproject/wsgi.py

but when I access my www.myproject.com I get this error

Not Found

The requested URL / was not found on this server. Apache/2.4.18 (Ubuntu) Server at www.myproject.com Port 80

What could be wrong?

0

There are 0 answers