Setup Https on Digital Ocean Ubuntu Server (Nginx and Certbot)
HTML-код
- Опубликовано: 12 сен 2024
- Free website building course with Django & Python:
bit.ly/2XnPMv1
Digital Ocean Hosting Playlist: bit.ly/2YwvReF
Digital Ocean sign-up (hosting): bit.ly/2XoXCVk
Namecheap sign-up (get a domain name): bit.ly/2FQCzFb
In this video I show you how to setup https using Nginx and a certbot on a digital ocean server. The digital ocean droplet is hosting a django website that I built in a free course on my website.
I take you through:
1) Installing a Certbot
2) Confirming Nginx is configured correctly
3) Allowing HTTPS through the firewall
4) Obtaining an SSL certificate
5) Vertifying certbot auto-renewal
codingwithmitc...
Instagram: / codingwithmitch
I love how complete this series is getting.
Brooooooo, this is absolute gold!!!! I know it's all there in the Digital Ocean article, but having someone explain and walkthrough is worth every since second. Thanks!
Great course, done over 3 production sites serving an API and 2 websites successfully..Thanks Mitch.
Amazing! I could never have done this on my own and yet you made it so easy. Thank you so much
I love how complete this series is getting (2)
You are savior! Amazing series!
Thank You, Sir.
Lots of love from India. ;)
OMG it worked so well and so fast I already had a secure site before I could notice, thanks!!!
Everything worked perfectly. Thank you so much!!
You are just insane.
Thank you so much bro!
Really helpful video, I'm just commenting for you if you read this, you can surely watch this video, worked for me on digital ocean. Thanks
I am not very expert in these things... but somehow I managed and installed SSL on my site. Thanks for sharing this.
Can we use CSR in this process?
What is csr?
Thanks! You are a big help! Very clear and simple
Hey I had the issue where https was not working. I solved it. I first checked the firewall status using sudo ufw status and noted 443 was not available. So I enabled it in the firewall by using sudo ufw allow 443 and everything worked. Thanks for the wonderful video.
Great video Mitch. Currently I'm digging a way to acquire a valid certificate for a domain which can only be accessed with in the company infrastructure or intranet. I know there is a way Letsencrypt issue a certificate for a wildcard domain through a DNS challenge. I need a help in doing it properly so that I can get a valid certificate for a BigBluButton installation that I need to deploy with in a company.
Great. Thank you so much. Worked perfectly
It worked. Thank you.
quick and easy. thanks!
Great tutorial! What's that thing about DigitalOcean spaces for static files? I have a couple of Django projects (mainly REST APIs) on a DigitalOcean droplet and I am able to load static files through the Django admin area... So why would I need DigitalOcean Spaces?
Could you or someone do a tutorial on how to get this running in a docker container? The docs look pretty confusing on Digital Ocean and I'm getting port 80 in use errors when building my container using nginx to serve static files.
Perfect one, thank you ^
Thanks. This was clear and simple.
I run into problems after this process i could't access my site using mysite url either www.mysite.com or mysite.com. i was getting the message below :
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.
Thank you for using nginx.
However i had to restart the entire process by uninstalling nginx and certbot from ubuntu..then restarting afresh with the nginx configurations and then install the lets encrpyt certificate.
I highly recommend you wait for (maybe 5 mins) or like in my case (3 hours) before the domain propagation had to take place....
Don't start the lets encrpyt process when you can't access your website yet without the SSL...so if you can't access www.mysite.com or mysite.com then wait until when you can then you can pick the SSL installation from there.
Thks
I love your series, i decide to it out on a project everything work well but i can login to my admin site i keep getting this error attempt to access a readonly database and the admin css not working also any help will be appreciated
Hey! I installed the certificate and in the end when I try to type https I get 404 error. What should I do?
Bro you put me in the right direction however when noticing that the certbot wrote files into the .conf files it rearranged 80 and 443 hierarchy.
nmala dp aljravotla chunomiyoma ooo shett
videos with barely understandable audio from india without enough explanation: 800 000 views
Great video with great audio and even greater explanation: 6500 views
Seems like most people don't recognize quality
Awesome content. I have one doubt that is I want to redirect all my www. to non www. requests.
Could this be possible?
Thanks in advance.
thank you. it's work
now getting the certificate for ngnix, django got easier.
Can you help to make a video for ssl installations for digitalocean + azuracast droplet. Thanks in advance.
Please, when u r recording, make sure the position your are typing is not at the bottom of the screen. when u pause the video. code is invisible
Hi Mitch, I have installed ssl for my server, but itsn't reflecting in the url
thanks
which terminal software are you using?
Thanks Dude
I got everything to work but http won't redirect to https
Hi i dint get any file as /etc/nginx/sites-available/example.com.
i have only a prnt.sc/tjjwxx. what should i do?
How Do i setuo a firewall
I want to configure only in nginx and I want traffic should redirect from http to https please do suggest
Isn't the auto-renew automatically set up on the initial cert installation? I didn't think is was necessary to do the "dry run" part to get auto-renew running.
Yeah, I just checked the D.O. documentation and it states this at Step 5:
"Let’s Encrypt’s certificates are only valid for ninety days. This is to encourage users to automate their certificate renewal process. *_The certbot package we installed takes care of this for us by adding a renew script to /etc/cron.d. This script runs twice a day and will automatically renew any certificate that’s within thirty days of expiration._*" (Emphasis mine.)
So, the auto-renew is already set up when you initially install the cert. (Maybe it wasn't like this when you originally posted this video.)
what is the link to the documentation?
Hi Mitch can you write me there the link to the digital ocean article? Thank you.
it's in the video
thanks, friend
no problemo
Not working on EC2
very first command doesn't work, this is the error I get, I'm using ubuntu 18.04 nginx: add-apt-repository ppa:cerbot/cerbot
Cannot add PPA: 'ppa:~cerbot/ubuntu/cerbot'.
Should be "certbot", not "cerbot".
Don't do 'sudo ufw delete allow '443/tcp', this just literally blocked me out of my instance via SSH.
Everything worked perfectly. Thank you so much!!