LoginSignup
5
0

More than 3 years have passed since last update.

【Heroku】カスタムドメインを設定する

Posted at

はじめに

Herokuアプリにカスタムドメインを設定したときの備忘録です。

Dyno

有料プラン(Hobby)で実施しました。

補足:無料プラン(Free)では本投稿に記載されている操作が行なえない可能性があります

目的

  1. ルートドメインでアクセス可能にする(例:https://xxx.com)
  2. httpsでアクセス可能にする

準備. ドメインを購入

自分の場合はGoogleDomainxxx.comを購入しておきました

1. [Settings] ドメイン&SSL設定

SettingsDomains and Certificatesでドメインを追加する

heroku_dns-01.png
heroku_dns-02.png
heroku_dns-03.png
heroku_dns-04.png

2. [Resources] PointDNSアドオン追加

ResourcesPointDNSアドオンを追加する

heroku_dns-11.png
heroku_dns-12.png
heroku_dns-13.png

3. [PointDNS] NSレコードの値を確認

PointDNSでNSレコードの値を確認する

heroku_dns-21.png
heroku_dns-22.png
heroku_dns-23.png

4. [DNSサーバ] NameServerを設定

ドメインを管理しているDNSサーバのNameServerPointDNSで確認したNSレコードの値を設定する

heroku_dns-31.png

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0