0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EC2 ドメイン名設定 Route53

0
Last updated at Posted at 2020-06-12

EC2にドメイン名を設定しよう!

ElasticIPを設定

これを設定しないと, EC2のdefaultのパブリックDNS(IPv4)は変わっちゃうみたい.
どのタイミングで変わるのかは知らんけど。

RouteS3にドメイン名を設定

お名前.com とかでとってきたオリジナルドメイン名を設定する.
設定したホストドメインに毎月0.5ドルくらいかかるらしいけど, それ以上稼げばいいだけの話.

ElasticIPとRoute53に設定したドメインをの結びつけ

Route53の中のAレコードってやつが, みんながアクセスする時に見るドメイン名なんだってさ.
だから, その中にElasticIPを結び付けるんだ!!!

ネームサーバーの設定

僕はお名前.comを使ったので, そこでの作業になるんだけど, Route53の中にあるタイプNSっていうやつの欄にある値を, お名前.comのどネームサーバー設定の所に全部いれるの!!!

これでサーバーのドメイン名の設定は終わりだお。

参考

WebサーバーにNginxを使っている場合

このままでは設定したドメインにアクセスしても, 失敗するお。
NginxのWebサーバーを使用している時は以下を参照されたし。

cd /etc/nginx/conf.d/
sudo vi default.conf


ここを  server_name yor.domain.name.com;

参考

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?