Reputation: 2113
I have my own domain (mydomain.com) registered at Namecheap and pointed to CloudFlare name servers.
I have successfully deployed (Nextjs + Nginx) container in AWS Lightsail container service, which has public domain like myservice.random.us-west-1.cs.amazonlightsail.com
I have added following CNAME records in CloudFlare DNS:
type: CNAME
name: mydomain.com
target: myservice.random.us-west-1.cs.amazonlightsail.com
ttl: Auto
proxy status: Proxied
type: CNAME
name: www.mydomain.com
target: myservice.random.us-west-1.cs.amazonlightsail.com
ttl: Auto
proxy status: Proxied
SSL/TLS encryption mode: Full
Even though I can see requests in CloudFlare dashboard, my site shows "404 No Such Service"
What am I doing wrong?
Upvotes: 2
Views: 1584
Reputation: 9
You are missing one step. Add a cname with the subdomain name to your service name example: cname subdomain.example.com service.ramdom.us-east-1.cs.amazonlightsail.com
Upvotes: -1