Hosting WordPress on Amazon Lightsail


Today one of my dream comes true —-> I got my very first website, www.9ice.cloud using Amazon Lightsail.

However, it took me almost a couple of hours to get “www.9ice.cloud” to finally work properly.

What happened was I created a domain name of “9ice.cloud” to create my email and later migrate the email host from Amazon WorkMail to Microsoft Office 365. Next, I created a WordPress website to host “www.9ice.cloud” via Amazon LightSail.

Amazon Lightsail was very easy to setup but only the apex of the domain “9ice.cloud” works and not the subdomain “www.9ice.cloud”.

After some troubleshooting steps, I found that in the Route53 > Hosted Zone > 9ice.cloud > record set of “www.9ice.cloud” was configure as below:

Record Name: www.9ice.cloud, Value: Static IP address 123456890, Type=CNAME

The solution as below:

Record Name: www.9ice.cloud, Value: 9ice.cloud, Type=CNAME

After the Hosted Zone record above updated “Value” to map to the apex of the domain (“9ice.cloud”), the url “www.9ice.cloud” started to work.

We can check the website using nslookup command as below:

Open a “terminal” and enter “nslookup -type=NS www.9ice.cloud”.

It should return Non-authoritative answer and Authoritative answers can be found.

Reference: https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-using-route-53-to-point-a-domain-to-an-instance.html


Leave a Reply

Your email address will not be published. Required fields are marked *