CNAME record redirection

0

Hello i have deployed Redcap Cloudformation in ELB in a hosted zone example.net and my application is pointed to staging.example.net and it works perfectly. i have another hosted zone name mydomaine.org and would like to redirect prod.mydomaine.org to staging.example.net. What's the best practice ? i tried several configurations without success. When i try to reach the website prod.mydomaine.org i get connection refused error on the browser. The Redcap Cloudformation generate certificate if this information can help to debug Thanks

1回答
1
承認された回答

The first thing to check is to make sure that your DNS is working. You can do this with nslookup or dig or there are many third-party tools - just make sure that prod.mydomaine.org resolves to staging.example.net and then to the IP address of the ELB.

Next, if you're using HTTPS the ELB must offer both certificates. That's because the browser will try to connect to prod.mydomaine.org but the ELB doesn't know that the connection has been redirected from there. If it is expecting the browser to connect to staging.example.net that's the certificate that it will offer. And the browser doesn't know about staging.example.net so it will throw an error about certificates being invalid.

This blog post covers multiple certificates using AWS Certificate Manager but it might help you with your custom certificate.

profile pictureAWS
エキスパート
回答済み 2年前
profile pictureAWS
エキスパート
Toni_S
レビュー済み 2年前
  • Thank you very much . This work perfectly

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ