Elastic Beanstalk URL root not working - EC2 Elastic IP and Elastic IP Public DNS working

二次信任 提交于 2019-12-25 09:00:55

问题


I am trying to deploy a Django app (1.11.3) to elastic beanstalk (Python 3.4). My issue is that my root route is not working correctly when I use the elastic beanstalk url, but works correctly when using the EC2 Elastic IP or EC2 Elastic IP Public DNS address.

When trying to view the root route of the elastic beanstalk url, the page never loads and ends with chrome showing ERR_CONNECTION_TIMED_OUT. All other routes other than the route route (/members, /contact, etc) are working correctly with both the elastic beanstalk url and EC2 IP.

Command used to create elastic beanstalk:

eb create examplesitename-staging \
      --branch_default \
      --cname examplesitename-staging \
      --database \
      --database.engine postgres \
      --database.instance db.t2.small \
      --database.size 5 \
      --database.version 9.3.17 \
      --instance_type t2.nano \
      --keyname admin \
      --process \
      --region us-east-1 \
      --single \
      --envvars ENV_VARS_ETC=...

来源:https://stackoverflow.com/questions/45403980/elastic-beanstalk-url-root-not-working-ec2-elastic-ip-and-elastic-ip-public-dn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!