我无法在 AWS ec2 上访问 Flask 应用程序

时间:2021-03-01 18:06:13

标签: amazon-web-services flask amazon-ec2

我已按照步骤在 amazon ec2 上设置了我的 Flask 应用程序:https://medium.com/@abhishekmeena_68076/how-to-deploy-the-flask-django-app-on-aws-ec2-with-gunicorn-ngnix-with-free-ssl-certificate-566b2ada3b6a

但是,我只能通过 ec2 地址访问它:http://ec2-XX-XX-XX-XXX.us-east-2.compute.amazonaws.com:80/message

当我尝试使用我注册的域访问它时,我收到了 503:

<html>

<head>
    <title>503 Service Temporarily Unavailable</title>
</head>

<body>
    <center>
        <h1>503 Service Temporarily Unavailable</h1>
    </center>
</body>

</html>

如何使我注册的域与似乎与完整 ec2 地址一起工作的 post 方法一起工作?谢谢。

0 个答案:

没有答案
相关问题