1 Answer
- Newest
- Most votes
- Most comments
0
SSL - this depends on whether you're running WordPress on EC2 or Lightsail.
The method for EC2 is at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html
On Lightsail you can use Bitnami's bncert
https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-enabling-https-on-wordpress
Alternatively, the steps to use Letsencrypt with WordPress on Lightsail are https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-using-lets-encrypt-certificates-with-wordpress
Relevant content
- asked 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 4 months ago
Domain has SSSL but when it comes to Public IP why would my website accessible through Public IP.
I don't want to Public IP accessible, However, website only accessible through domain name.
Also when I access through public ip website shows without SSL
Have you understood my point?
Your website is available without SSL because the webserver is listening on an insecure port (almost certainly HTTP on port 80) and the security group is allowing inbound connections on that port.
You could stop the webserver listening on port 80, or you could close inbound port 80 in the security group, or you could redirect 80 (HTTP) to 443 (HTTPS).
how to do that in amazon light sail ? list down steps
Your website is available without SSL because the webserver is listening on an insecure port (almost certainly HTTP on port 80) and the security group is allowing inbound connections on that port. You could stop the webserver listening on port 80, or you could close inbound port 80 in the security group, or you could redirect 80 (HTTP) to 443 (HTTPS).
AWS provides the steps to redirect HTTP to HTTPS for Lightsail here https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configure-load-balancer-https-redirection