Ulthran / ctbus_site

A site for ctbus
0 stars 0 forks source link

Fix www.charliebushman.com #12

Closed Ulthran closed 1 month ago

Ulthran commented 1 month ago

Done! I was trying the commonly recommended method of creating a DNS record that would point directly from www.charliebushman.com to charliebushman.com but for some reason that wasn't working. The solution I implemented in it's place was to create a second ACM certificate for *.charliebushman.com (also useful for other things like deploying dev versions to dev.charliebushman.com) and then create a separate Custom Domain in API Gateway for www.charliebushman.com. Final step, don't forget, is to go into Route 53 and add a DNS record for www.charliebushman.com that aliases to the new custom domain endpoint.

Not sure that this is the best way to do it but it works for me!