Can't access site on EC2 linux instance via public ip

This question already has an answer here:

  • Can't browse to my EC2 Instance [closed] 3 answers

  • I bet you need to work your security groups

    Open the EC2 console and check the security group rules for your ec2 instance, make sure you allow HTTPS (port 443) inbound connection on your instance and it will be available for you


    As you mentioned a Chef Server if you want the Web UI to work with the EC2 Public DNS this are the setting you need to make to the /etc/chef-server/chef-server.rb file. If you don't make the below changes then you will be able to access the UI only on the localhost like in your case.

    lb[:enable] = "false"
    lb[:web_ui_fqdn] = "ec2-54-211-175-150.compute-1.amazonaws.com"
    
    nginx[:server_name] = "ec2-54-211-175-150.compute-1.amazonaws.com"
    nginx[:url] = "https://ec2-54-211-175-150.compute-1.amazonaws.com"
    nginx[:enable_non_ssl] = "true"
    

    After you make above changes and still you are not able to access the Web UI for Chef then check your Security group for your EC2 instance and see if you have port 80 and port 443 open in that security group.

    链接地址: http://www.djcxy.com/p/32446.html

    上一篇: 如何避免nginx“上游发送太大头文件”错误?

    下一篇: 无法通过公共IP访问EC2 linux实例上的站点