Can anyone please help me to figure out redirection issue with AWS application load balancer?
I have -
- Deployed React JS app on EC2 - Ubuntu 18.04 with Nginx
- Obtained SSL from AWS ACM
- Attached ALB to EC2 instance, added 2 listeners - PORT 80, PORT 443 (Forwarding request to target group on PORT 80)
- added CNAME record www pointing to ALB
Also, I have added redirect rule in listener 443 as -
But when I am visiting my site like - https://exampledomain.ai it throws DNS_PROBE_FINISHED_NXDOMAIN
Update: When I visit -
mydomain.ai //redirected to https://www.mydomain.ai
http://mydomain.ai //redirected to https://www.mydomain.ai
http://www.mydomain.ai //redirected to https://www.mydomain.ai
Is there anything else I am missing? Please help