Django Apache和WSGI设置没有找到网址?

时间:2017-01-07 20:36:26

标签: django apache mod-wsgi wsgi django-wsgi

我正在使用Apache和modwsgi在VPS上设置Django并为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

但是当我访问我的www.myproject.com时,我收到此错误

Not Found

在此服务器上找不到请求的URL /。 Apache / 2.4.18(Ubuntu)服务器,位于www.myproject.com端口80

可能出现什么问题?

0 个答案:

没有答案