I have installed wordpress on my ubuntu16.04 LTS instance of ec2. I was able to connect to it via public DNS. But then I added the Elastic IP to the instance and tried to connect to the instance via my browser but it took a lot of time and the browser ended up saying "This site can’t be reached". I have added security group allowing the port 80 as well. Before adding elsatic IP I was accessing the ec2 instance via public dns with no errors. Is this has to do something with elastic IP.
Thanks in advance.
Судя по вашему вопросу, похоже, что вы хотите подключиться к общедоступному IP-адресу исходного экземпляра после привязки к нему эластичного IP-адреса.
Это невозможно: поскольку как только вы свяжете эластичный IP-адрес со своим экземпляром EC2, старый общедоступный IP-адрес будет освобожден.
См .: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip- Address-eip.html