AWS re:Postを使用することにより、以下に同意したことになります AWS re:Post 利用規約

How can I fix the Application Load Balancer issue?

0

My web service is running on EC2 instance as a container. I configured the Application Load Balancer, Route 53. The healthy check of target group is also OK. But I get the following error, but not my default website page after I input the domain name in the address field of my Chrome.

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com.

Thank you for using nginx.

I also posted my question in Stackoverflow as the following link, which is much clearer. https://stackoverflow.com/questions/76169768/how-can-i-fix-the-application-load-balancer-issue-of-aws

1回答
0

It looks like you are seeing the nginx default index.html.
You will need to place your web page files in the nginx document root in the Docker container.
For example, when starting a container, the "-v" option can be used to bind-mount a local directory from the container to share files within the container.
https://hub.docker.com/_/nginx

For example, the following command will start it.
In the case of the following command, if you place your web page files in "/some/content", they will be shared to "/usr/share/nginx/html" in the container.

docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d nginx
profile picture
エキスパート
回答済み 2年前
  • Thanks for your reply. Actually I already run my web service in a container.

  • If you are running it, you should only need to place your website content in the nginx document root of the Docker container.

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

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

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

関連するコンテンツ