Hosting A secure website with letsencrypt(free TLScertificate)
Learning Outcomes:
- Hosting a website
- creating certificates
- understanding domain name resolution
- CNAME, A, AAAA DNS records
- Cloud computing
Now lets start hosting our website.
Understanding::
Step1:
Buying a domain
We have many websites to buy a domain(godaddy, domain.com, etc),
I used domain.com.
Step2:
Lets go for hosting
Here I used cloud computer, (sine, I have found it easy and convenient) or you can use your own infrastructure for hosting.
Here I used digitalocean droplet as my server.
How to set up a server on digital ocean?
Here are the steps:
1. Go to digitalocean.com
2. Sign up
3. Create your project
4. After creating project, click on create a droplet.(here droplet is nothing but a virtualmachine)
5. Select the distribution and choose a plan, here I chose minimum plan.
6. But, go to Marketplace to choose a distribution with a required software. select wordpress on ubuntu(best for web hosting)
7. You can configure additional settings but, I am going with basic settings required for hosting.
8. Now selecting type of authentication. Here it is better to choose ssh key for safer authentication since only you can get the ssh access.
9. After selecting the ssh key, upload your public key into the dropbox, and click continue. (you can get your public key in mac or linux distributions—terminal> cd /home/USERNAME>cd .ssh> click the file containing .pub(eg. Id_rsa.pub) )
10. If you choose password authentication, configure a password and click create droplet
11. Done! You have created your first cloud computer.
12. This is going to be our web server.
13. Once created you can click at your droplet get its public ip to gain console.
14. Note here itself you can turn off/on your cloud computer.
Step3:
a. Now go back to domain.com and configure your nameserver.
b. For digitalocean it is ns1digitalocean.com, ns2digitalocean.com.
c. Come back to digitalocean.com and o your droplet page click – create>Domain/DNS>Add a domain
d. Here you add your domain name.
Comments
Post a Comment