Create a Digital machine and set up an online server
Now join this servers with xshell.
Create a Digital machine(Database server) [Disable public ip]
As this server have no public ip, so we won’t in a position to join it immediately
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..
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
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
we’ve to clone that repo to our internet server folder identify [ html ] as comply with
[In case if we stop and start our server , we need start our apache again , to avoid this we can simply enable that server]
Now paste the general public ip within the browser and you will notice your web site.[Not fully secure]
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
When you type out your area, you need to return to the Azure console and navigate to the AZURE DNS service.
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
After that put this identify server inside your area identify server [freenom]
You possibly can alse add a file set as proven beneath.
Now our area is absolutely binds with our public ip.
However its not Safe
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
Step 2: Set up Certbot
sudo certbot --apache -d cloud167.ml -d www.cloud167.ml
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.
Sort 2
Right here we’ve efficiently put in and configure lets encrypt legitimate certificates with apache internet server
Paste your area identify in browser as proven beneath its absolutely secured now