如何使用Apache在HTTPS上运行烧瓶应用程序?

发布于 2025-02-08 14:43:51 字数 472 浏览 2 评论 0原文

我想在HTTPS上运行一个简单的烧瓶应用程序。因此,这是我已经完成的事情:

  1. 首先,我写了一个简单的烧瓶应用程序
  2. ,然后使用mod_wsgi for apache运行它,
  3. 然后我制作了一个自签名的证书并将其应用于我的Apache服务器。 以及当我尝试以这种方式到达申请的问题: http://example.com/ 我看到烧瓶应用程序的结果,但是当我尝试 https://example.com/ 我看到Apache的默认欢迎页'。 实际上,我知道我应该在Apache的配置中编辑某些内容,但我不知道到底是什么。 PS自签名证书正常工作

I want to run a simple flask application on https. So here are the things i already done:

  1. First of all i wrote a simple Flask app
  2. Then i've run it using mod_wsgi for apache
  3. Then i made a self-signed cert and applied it to my apache server.
    And the problem that when i try to get to my application this way: http://example.com/ i see the result of my flask app, but when i try https://example.com/ i see apache 'default welcome page'.
    Actually i understand that i should edit something in apache's configs, but i dont know what exactly.
    P.S. self-signed cert works properly

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文