Hello,
I have a Lightsail distribution using a bucket as an origin for my Wordpress instance.
I've set an A record for my apex domain (rionomada.com) pointing to my distribution. I also set a CNAME record for www.rionomada.com pointing to the default domain (xxxxxxxx.cloudfront.net).
Nothing works.
I have an SSL certificate for both domains (rionomada.com and www.rionomada.com) which appears valid and in use.
The setup seems to be fine, but even if I go directly to the xxxxxxxxx.cloudfront.net domain, it won't resolve and I get the following error:
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>B0EYV5RM142PFS93</RequestId>
<HostId>p9h5yZ05E1UqUWKppER2q2s1YuRaGvIIgl+jear2oB6oS8AGbTGbOFrYYVt0rjLqOg4Vd2LsFyw=</HostId>
</Error>
I haven't touched the wp-config.php file at all, but I did set the Let's Encrypt certificate to automatically turn HTTP requests to HTTPS.
Has anyone had this issue as well? Any help you can provide will be greatly appreciated!
Thanks,
Luis
If the distribution is pointing to the bucket, how would that serve your WordPress site? Are you using a tool to export a static site from WordPress to that bucket?
Check with your registrar that it's pointing to the correct set of DNS records. Every time you create a DNS record in Lightsail the NS servers change, so you would need to update that if you've created a new Hosted Zone