如何将Flask应用程序部署到Debian服务器上的Apache

时间:2019-04-12 16:55:11

标签: python apache flask debian

我正在尝试使用Debian 8在在线服务器上部署Flask应用程序。 设置完所有内容后,我在浏览器上看到的所有错误都是404错误。我实际上需要知道我做错了什么。

我已经在本地ubuntu计算机和两个在线ubuntu上部署了相同的flask应用程序,但是我陷入了Debian的困境。

这是apache conf文件:

import sys

sys.path.insert(0, "/home/dawahnig/public_html/scripts/python/test")

from init import app as application

这是wsgi文件

{{1}}

当我访问 media.dawahnigeria.com/test

时,浏览器应打印出 hello world

0 个答案:

没有答案