Configure Heroku with its own domain on Route 53

Asked 2 years ago, Updated 2 years ago, 78 views

I set up my own domain in Heroku by following the steps below.
Route 53 routing is not working properly.

Retrieving Domains on Route 53

cocowa.works

Register Domain with Heroku

$heroku domains:add example.com
$ heroku domains —add www.example.com

Create a Host Zone on Route 53

Create CNAME Record Set

Name: wwww
Type—CNAME
Value: cocowa.herokuapp.com

Create S3 Bucket

  • Bucket name

    cocowa.works
  • Configuring Static website hosting

    Redirect Request   >Target bucket or domain www.cocowa.works

Bucket name

cocowa.works

Configuring Static website hosting

Redirect a request
  >Target bucket or domain
   www.cocowa.works

Create A Record

Name: (blank)
Type: A
Alias: Yes
Alias Target: Select Bucket for "cocowa.works" registered with S3

H URL of Heroku app
http://cocowa.herokuapp.com/

取得 Acquired domain
http://cocowa.works/

I would appreciate it if you could let me know if there are any mistakes in the settings.
Thank you for your cooperation.

aws heroku

2022-09-30 19:06

2 Answers

Do I need an S3 bucket?
Wouldn't you like Alias to return the A record of cocowa.works with the IP address of cocowa.herokuapp.com?


2022-09-30 19:06

It's solved.
As a result, the cause was on the configuration side of the domain.
(Route 53 routing configuration was not a problem in the first place...)

Thank you to everyone who responded.


2022-09-30 19:06

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.