Wednesday, August 3, 2022
HomeWordPress DevelopmentHost a web site on Azure Digital Machine with SSL enabled utilizing...

Host a web site on Azure Digital Machine with SSL enabled utilizing Let’s Encrypt & add a customized area managed by Azure DNS.




Create a Digital machine and set up an online server

Image description
Image description
Image description

Now join this servers with xshell.

Image description



Create a Digital machine(Database server) [Disable public ip]

Image description
Image description

As this server have no public ip, so we won’t in a position to join it immediately

Image description

We will entry it via one other server which will probably be in the identical community..
lets attempt to join it inside an online server..

Image description

as you possibly can see that internet server acts like an soar server.

Right here we’re going to set up apache server

apt set up apache2
Enter fullscreen mode

Exit fullscreen mode

Image description

We will use Github instructions to clone our web site code from our repo ,so You could set up git.

apt set up git -y
Enter fullscreen mode

Exit fullscreen mode

we’ve to clone that repo to our internet server folder identify [ html ] as comply with

Image description

[In case if we stop and start our server , we need start our apache again , to avoid this we can simply enable that server]

Image description

Now paste the general public ip within the browser and you will notice your web site.[Not fully secure]

Image description



The right way to connect a site identify

you require a free or bought area to totally full all of the steps. If you have already got a site, then superior, if not, don’t be concerned, you will get a free area! You possibly can go to the next web site and get your self a free area.

https://www.freenom.com/en/index.html?lang=en

Enter fullscreen mode

Exit fullscreen mode

Image description

When you type out your area, you need to return to the Azure console and navigate to the AZURE DNS service.

Image description



Create a DNS zone

Azure DNS is a internet hosting service for DNS domains that gives identify decision through the use of Microsoft Azure infrastructure.
By internet hosting your domains in Azure, you possibly can handle your DNS information through the use of the identical credentials, APIs, instruments, and billing as your different Azure.

It’s important to make sure that to enter the precise area identify as proven beneath

Image description

After that put this identify server inside your area identify server [freenom]

Image description
Image description

You possibly can alse add a file set as proven beneath.

Image description

Now our area is absolutely binds with our public ip.

Image description

However its not Safe

Image description



How To Safe Apache with Let’s Encrypt on Ubuntu.

Let’s Encrypt is a Certificates Authority (CA) that offers a easy technique to amass and introduce free TLS/SSL declarations, alongside these traces empowering encoded HTTPS on internet servers.
It rearranges the process by giving a product buyer, Certbot, that endeavors to mechanize most (if not the whole lot) of the required advances.

Step 1: Replace System

sudo apt-get replace 
Enter fullscreen mode

Exit fullscreen mode

Image description

Step 2: Set up Certbot

sudo certbot --apache -d cloud167.ml -d www.cloud167.ml
Enter fullscreen mode

Exit fullscreen mode

Its auto confirm the area and its will create all required information to configure in virtualhost ssl parameter, After set up and configuration, You’ll get the profitable message, Now you possibly can entry with yours area like this.

Image description

Sort 2

Image description

Right here we’ve efficiently put in and configure lets encrypt legitimate certificates with apache internet server

Image description

Paste your area identify in browser as proven beneath its absolutely secured now

Image description
Image description

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments