# First download Ubuntu 18.04 or use Any Cloud VPS.
https://www.linuxvmimages.com/images/ubuntu-1804/
(Download the OVF file from here) # Install Node Latest version $ sudo apt install curl $ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash – $ sudo apt install nodejs $ node -v ## Install command for other packages $ sudo apt install nginx $ sudo nginx $ cd /var/www $ sudo mkdir subdomain.example.com $ sudo touch subdomain.example . com/index.html ## For the domain subdomain.example.com $ sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/subdomain.example.com $ sudo ln -s /etc/ nginx /sites-available/subdomain.example.com /etc/nginx/sites-enabled/subdomain.example.com ## NOTE: There is only one default server block in nginx with the same port. ## For the server subdomain.example.com { listen 80; listens [::]:80; root /var/www/blog.example.com; index index.html; server_name blog.example.com; } # For SSL ## Change the available domain file server on the site { listen 443 ssl; server_name subdomain.example.com; } $ sudo add-apt-repository ppa:certbot/certbot $ sudo apt-get update $ sudo apt-get install python-certbot-nginx $ certbot -d subdomain.domain.com –manual –preferred-challenges dns certonly # # Explained -d – pass the subdomain. –manual – manual authentication method. –preferred-challenges dns – Use the DNS authentication method. You must manually add the DNS value to verify that you own the subdomain. ## Generated in /etc/letsencrypt/live/subdomain.example.com/fullchain.pem; /etc/letsencrypt/live/subdomain.example.com/privkey.pem; ## Server Domain File Server { listen 443 ssl; listens [::]:443 ssl; root /var/www/subdomain.example.com; server_name subdomain.example.com; ssl_certificate /etc/letsencrypt/live/subdomain.example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/subdomain.example.com/privkey.pem; } $ sudo nginx -t $ sudo service nginx restart Now the server with SSL and the hosted MERN project are up Thanks for looking. Comment if you have any doubt
https://wa.me/918512854555
Source Link
$type=ticker$count=12$cols=4$cate=0
$type=carousel$count=9$cols=3$cate=0$show=home

Search This Blog
[Social Counters]$type=social_counter
RECENT WITH THUMBS$type=blogging$m=0$cate=0$sn=0$rm=0$c=4$va=0
/fa-clock-o/ WEEK TRENDING$type=list
/fa-fire/ MONTH POPULAR$type=one
-
Get the complete information about Russia Cloud VPS Server Hosting by @Onlive Server Private LimitedGet the complete information about Russia Cloud VPS Server Hosting by @Onlive Server Private Limited Onlive Server’s main goal is to offer...
-
Fastest dedicated WordPress hosting review and get the best WordPress hosting at a low price for UK, Canada, US and Australia. https://itw...
-
I thought it was time to compile a list of my 10 personal Amazon favorites. All the products in the video are under $ 20 and are serious ...
-
Visit the website: – https://www.hostingraja.in Hi guys, in this video we are going to discuss about web hosting at the cheapest price an...
-
app link https://play.google.com/store/apps/details?id=com.fandbstars #bluecoats #pidilite #fevicol #point # f & b-Stars. Source Li...
COMMENTS