Install SSL on AWS EC2 WordPress 2023 and Connect domain with the AWS EC2 Server
HTML-код
- Опубликовано: 12 сен 2024
- Hello Guys! In this tutorial, I will show you how to install free SSL on AWS EC2 WordPress using two AWS services which are AWS Certificate Manager (ACM) and Application Load Balancer (ALB). In the previous video, I showed you how to install a blazing-fast WordPress on AWS EC2. If you haven't watch that then please watch that video before that otherwise this video won't make much sense to you.
In the video, we will use ACM to generate a Free SSL certificate for our WordPress website domain and ALB to forward that SSL to our AWS EC2 server. This way, we don't have to install SSL directly on our EC2 server. This approach of deploying SSL is very helpful when you have multiple AWS EC2 servers running the same WordPress website or even if your single EC2 server gets crashed. You can easily connect the same ssl certificate to the other server.
If you have any questions, please comment down below and I'll answer each and every query as soon as possible.
Hey Bhroooh.... Many many many many many thanks for this...
It is working absolutely fine and it was very helpful.
work like a charm!
at 02:40 you dont explain what to type in at cname records sir. Can you explain? my certificate request still pending.
Can you tell me why ssl is not installed properly ? I have done all the above procedures.
Can you please share the error? I think you may have missed a step. Thanks
thank you.
when i try to create load balancer it only shows one zone
Hi Roshan, the number of availability zones depends on the region in which you are trying to deploy the load balancer. E.g, if you are deploying the load balancer in "N.Virgina" region, you would see 6 availability zones but if you are in "London" region, you would see only 3 zones. By default, each aws region has atleast 2 availability zones.
In your case, if you are seeing only 1 availability zone then it means that you are deploying the ALB in a custom VPC in which you have created subnets in only one availability zone. If you want to see the option to select multiple availability zones then go to your custom VPC and create subnets in each availability zone that your region offers. I hope that helps... Thanks
hi the DNS record does not work for me, I don’t know how to pass that step :( can you help me?
Hi Galaxia! Can you please share exactly what issue you are having with the DNS record? Thanks
Thanks for the insightful tutorial. I have a domain with the DNS managed by GoDaddy. I have a EC2 machine running an Apache web server with a website. I followed everything here up to the point where I need to create an A record with the load balancer DNS name. I am not getting to do so on GoDaddy. Any advice?
Glad it helped! To use AWS LoadBalancer, you would have to transfer your DNS records from Godaddy to Amazon Route53. Then you can add the load balancer DNS name as an A record. Please follow this tutorial to get step-by-step instructions to do so. Thanks!
ruclips.net/video/RI8oy-HGkIQ/видео.html
how would you connect the SSL to the main domain and not a subdomain?
Hi, the process is absoluely same. When modifying domain records in Amazon Route 53, you just have to keep that field empty where you currently type the subdomain name. That will add the 'A' record for the main domain. Thanks
In 8:53 I am trying to put the name of the A record from what I got from AWS; the value for the A type DNS entry I am inputting is an elastic IP I got for the ec2. I am not sure why, but it is not working. What can I do?
Hi Albert, in your domain DNS records, for record type 'A', you would have to put the value of the 'DNS name' of the application load balancer as shown in the video not the elastic ip of the ec2 instance. Thanks
@@awswithmuheyuddin Thanks. Do you think we could do a zoom call where you mentor me on this. I'll pay you because I'm not sure what's wrong. When I go to my domain, nothing pops up.
Sure, please get back to me at muheyuddin@yahoo.com and I will see how can I help... Thanks!!
Hi, when i created a certificate just stay at: " Pending validation" =/
It's because you didn't correctly create the CName record that the certificate manager generated for your domain in Route53. Please make sure to do that correctly and then check back the certificate status. Thanks
what if I don't need a load balancer and I just need to connect the certificate to the server directly?
That's not possible. You must need a load balancer to connect the Amazon Certificate manager generated SSL certificate to your EC2 instance. Thanks!
Does it worth 😢? A simple Wordpress site with ALB ?
It will cost around 30-40$ /month even if you don’t have visitors??
No, it's worth that at all! I would recommend Hostinger WordPress hosting if you have budget constraints...Thanks!!
Actually , i have django rest framework hosted on aws . The api is being used by my apps . Now the issue is hardly have 300 active user/months and with that much user ELB giving me 18$ /month almost fix charge + other charges (thats fine) . I had to use elb just because i need https 😑
Can you please make a video on how nginx powered django projects can have ssl without elb runningon ec2 ?
I think free ssl is a trap from aws !
For small /medium level of projects having less than 10k active users/day does not even need elb ! I have tested using pythonanywhere
Hello, i have created Target Groups, Load Balancers and I'm trying to create 'A' record for my main domain in Route 53 with value of the 'DNS name' of the application load balancer but already I have a 'A' record for my main domain with site public IPv4 the record is not creating. So i have changed the existing 'A' record from Public IPv4 to value of the 'DNS name' of the application load balancer.
Now the site is not connecting. It says 'refused to connect'
Is it the right process? Can u pls assist.
Thanks
Reply
I think it's a secuity group issue. PLease make sure your ec2 instance security group allows traffic from the application load balancer.
sam with me
I m tried but ssl still not active
You must missing some step or there could be a problem in your server configuration.
bro how to connect hostinger domain
Please watch the video below for step-by-step instructions to connect your Hostinger domain. Though this video is for Godaddy but the process for Hostinger is also similar.
ruclips.net/video/RI8oy-HGkIQ/видео.html
Let me know if you still have any questions. Thanks
Sir how much time to take create TLS certificate for AWS certificate manager
It takes only 2 minutes
How to add A record in Godaddy of Application Load Balancer DNS. It showing only to add IP address
Hey Rahul! Unfortunately, Godaddy now doesn't support that. Please connect your Godaddy domain with Amazon Route53 by following the video below and then you can add the ALB DNS name as "A" record of your domain. Thanks
ruclips.net/video/RI8oy-HGkIQ/видео.html
bro i have created two instances in two subnets. One instance has web server ( runs word press ) and other instance has db server ( mysql or mariadb ) DB instance doesnt have a public ip. It access internet by IGW .i have purchased a domain name in hostinger. Do i have to config ELB s
Yes, you would have to configure the Application Load Balancer as shown in the video.
Where Can I copy the lines at 12:27
You would have to manually type those lines by watching the video... Thanks!!
that an amazing, you solve my big problem, but now the site opens just with an IPv4 address but when try to open it with the domain I get DNS_PROBE_FINISHED_NXDOMAIN error, what should to do
Glad you like the video, Noor. I think you didn't configure the DNS records correctly. Please make sure that you point the A record of your domain to the Application Load Balancer DNS name and that your server security group allows the traffic from the ALB. Also, make sure that you add the CNAME record in the DNS settings for the SSL to work as shown in the video. Thanks