如何使用Apache在HTTPS上运行烧瓶应用程序?
我想在HTTPS上运行一个简单的烧瓶应用程序。因此,这是我已经完成的事情:
- 首先,我写了一个简单的烧瓶应用程序
- ,然后使用mod_wsgi for apache运行它,
- 然后我制作了一个自签名的证书并将其应用于我的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:
- First of all i wrote a simple Flask app
- Then i've run it using mod_wsgi for apache
- 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论