我是django和部署应用程序的新手。我试着按照this教程。一切都很好,除了最后,而不是django应用程序我得到了depault apache2页面。 (如果有问题,我会在ubuntu上工作)。
/etc/Apache2/sites-available/000-default.conf:
<VirtualHost *:8079>
Alias /static /home/or/myproject/static
<Directory /home/or/myproject/static>
Require all granted
</Directory>
<Directory /home/or/myproject/myproject/>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess myproject python-path=/home/or/myproject/ python-home=/home/or/myproject/myprojectenv
WSGIProcessGroup myproject
WSGIScriptAlias / /home/or/myproject/myproject/wsgi.py
</VirtualHost>
有什么建议?也许防火墙或什么?我很丢失......
[1]: https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04
所以我不确定出了什么问题但是我使用了this教程并且效果很好(除了我编辑'000-default'文件而不是'default'文件。