アプリ版:「スタンプのみでお礼する」機能のリリースについて

AWSで取得したドメイン名『henomoheji.net(仮称)』のホストゾーンの『Aレコード』の値に、やはりAWSで取得した『Elastic IP:xxxxx』を設定したところ、ブラウザーのURL欄に『Elastic IP:xxxxx』を打ち込むと、Apacheテスト・ページが表示されるようになりました。そこでURL欄に『henomoheji.net』と打ち込んでも、Apacheテスト・ページが表示されようにしたいのですが、うまく行きません。

これまでに行ったこと、
 ①『インスタンス: i-******** (henomoheji.net)』にチェックを入れ、『アクション』→『接続』→『ユーザー名:ec2-user』→『接続』をクリックすると以下の画面が表示されます。
Last login: Fri Apr 14 01:00:54 2023 from ec2-18-206-107-28.compute-1.amazonaws.com
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
[ec2-user@henomoheji ~]$

 手順①の『ユーザー名』を『ec2-user』に替えて『henomoheji.net』とし、『接続』をクリックすると、『Failed to connect to your instance Error establishing SSH connection to your instance. Try again later.』と言うエラー・メッセージが表示されます。

 ②『Route 53 ダッシュボード』→『ドメイン』→ドメイン名『henomoheji.net』で表示される『このドメインに関する DNS クエリに応答するネームサーバー』は以下の4つです。
Nameserver1:ns-***.awsdns-**.com
Nameserver2:ns-****.awsdns-**.org
Nameserver3:ns-***.awsdns-**.net
Nameserver4:ns-****.awsdns-**.co.uk
 しかし、『Route 53 ダッシュボード』→『ホストゾーン』で表示される2つの『ホストゾーン名(どちらもhenomoheji.net)』の内容と一致していなかったため、どちらも上記の『Nameserver1~4』の値に統一しました。

しかし状況は変わらず、ブラウザーのURL欄に『Elastic IP』を打ち込むと、Apacheテスト・ページが表示されますが、URL欄に『henomoheji.net』と打ち込んでも、Apacheテスト・ページは表示されず、console.AWS→『インスタンス: i-******** (henomoheji.net)』→『アクション』→『接続』で、『ユーザー名』を『ec2-user』から『henomoheji.net』に変更し、『接続』をクリックすると、『Failed to connect to your instance Error establishing SSH connection to your instance. Try again later.』と表示されます。

 以上の処理は、主に『AWS Route 53を使って独自ドメインのWebページを表示させてみようhttps://avinton.com/academy/route53-dns-vhost/』を参考に致しました。

解決のヒントなり頂ければありがたいです。よろしくお願い致します。

質問者からの補足コメント

  • そこでWindows 10 ローカルPCに『Visual Studio Code』をインストール、『.ssh>config』を以下のように設定しました。
    --- --- ---
    C>User>seane>.ssh>config
    1 # Read more about SSH config files: https://linux.die.net/man/5/ssh_config
    2 Host henomoheji.net
    3 HostName *.***.***.**(Elastic IP)
    4 User moheji
    5 port 22
    6 IdentityFile IdentityFile D>PC管理>aws>henomoheji.net>Apache.pem
    --- --- ---

      補足日時:2023/05/02 16:01
  • この状態で、保存したところ、以下のメッセージが表示されました。
    --- --- ---
    SSH ホスト henomoheji.net を設定しています: ([details](command:opensshremotes.showDetails "Show details")) VS Code Server を初期化中
    --- --- ---
     またその後、『VSCode』を起動する度に以下の画面が現れ、末尾に『SSH ホスト henomoheji.net を設定しています: ([details](command:opensshremotes.showDetails "Show details")) VS Code Server を初期化中』と表示されます。
    --- --- ---

      補足日時:2023/05/02 16:03
  • Select the platform of the remorte host "henomoheji.net"
    Linux
    Windows
    macOS

    [10:20:22.658] Log Level: 2
    [10:20:22.976] SSH Resolver called for "ssh-remote+henomoheji.net", attempt 1
    [10:20:22.978] "remote.SSH.useLocalServer": false
    [10:20:22.981] "remote.SSH.showLoginTerminal": false
    [10:20:22.981] "remote.SSH.remotePlatform": {}

      補足日時:2023/05/02 16:05
  • [10:20:22.981] "remote.SSH.path": undefined
    [10:20:22.981] "remote.SSH.configFile": undefined
    [10:20:22.982] "remote.SSH.useFlock": true
    [10:20:22.982] "remote.SSH.lockfilesInTmp": false
    [10:20:22.982] "remote.SSH.localServerDownload": auto
    [10:20:22.984] "remote.SSH.remoteServerListenOnSocket": false
    [10:20:22.984] "remote.SSH.showLoginTerminal": false

      補足日時:2023/05/02 16:08
  • [10:20:22.984] "remote.SSH.defaultExtensions": []
    [10:20:22.984] "remote.SSH.loglevel": 2
    [10:20:22.984] "remote.SSH.enableDynamicForwarding": true
    [10:20:22.984] "remote.SSH.enableRemoteCommand": false
    [10:20:22.986] "remote.SSH.serverPickPortsFromRange": {}
    [10:20:22.986] "remote.SSH.serverInstallPath": {}
    [10:20:23.046] VS Code version: 1.77.3

      補足日時:2023/05/02 16:09
  • [10:20:23.047] Remote-SSH version: remote-ssh@0.100.0
    [10:20:23.047] win32 x64
    [10:20:23.056] SSH Resolver called for host: henomoheji.net
    [10:20:23.058] Setting up SSH remote "henomoheji.net"
    [10:20:23.084] Using commit id "704ed70d4fd1c6bd6342c436f1ede30d1cff4710" and quality "stable" for server

      補足日時:2023/05/02 16:11
  • [10:20:23.141] Install and start server if needed

    SSH ホスト henomoheji.net を設定しています: (details) VS Code Server を初期化中
    ソース:Remote - SSH (拡張機能)
    --- --- ---
    上記の内容からお気づきの点がありましたら、何なりとアドバイス頂ければ幸いです。

      補足日時:2023/05/02 16:11

A 回答 (1件)

簡潔化

    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!