Background:
- 2 domains with Route53
- 1 ALB
- 1 Target group with 2 EC2
Goal: www.domain123.com always goes -> https://www.domain123.com
If a user types in domain123.com (without www) it should also go to https://www.domain123.com
- First question, is this correct / appropriate DNS configuration?
Current set up - Route53:
- domain123.com A record -> LoadBalancer
- domain123.com NS
- domain123.com SOA
- Second question, do I need a CNAME here? I have seen mixed videos of people doing this and not doing this.
Application load balancer set up - Listeners:
- HTTPS Port 443 -> Forward to Target Group
- Default ACM (SSL) certificate
- Third question, do I need another listener on Port 80?
Target Group -
- 2 EC2 instances listening on Port 80
- Fourth question, I want to host a couple sites. Does the ServerName and ServerAlias need to contain the www?
Conf file - <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/var/www/html/domain123.com" ServerName domain123.com #ServerAlias domain123.com ErrorLog "logs/domain123.com-error_log" CustomLog "logs/domain123.com-access_log" common
Thanks in advance.