Https without www not working in aws route 53

1.4k Views Asked by At

i have domain for example, example.com so,

http://www.example.com ( works ),
https://www.example.com ( works ),
http://example.com ( works ),
https://example.com ( does not work)

so how can i make https://example.com work ? i have two ports listening on my aws elastic beanstalk i.e. 80 and 443, and only 443 has ssl on it, and any request coming to port 80 is forwarded to 443, any help regarding it is appreciated... thanks in advance

2

There are 2 best solutions below

2
jdi On

I assume you are using ACM certificates? If so: do you have multiple domain names (www.example.com and example.com) defined for the certificate? You can also set Wildcards like *.example.com

See more here: https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html

0
Roger F On

Refer to https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html

Note

When you request a wildcard certificate, the asterisk (*) must be in the leftmost position of the domain name and can protect only one subdomain level. For example, *.example.com can protect login.example.com and test.example.com, but it cannot protect test.login.example.com. Also note that *.example.com protects only the subdomains of example.com, it does not protect the bare or apex domain (example.com). However, you can request a certificate that protects a bare or apex domain and its subdomains by specifying multiple domain names in your request. For example, you can request a certificate that protects example.com and *.example.com.