Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Host Multiple Website's on Single Virtual Server
Rating: 4.2 out of 5(26 ratings)
1,289 students

Host Multiple Website's on Single Virtual Server

सिंगल वर्चुअल सर्वर पर मल्टीपल Website होस्ट करें , Docker, Docker Compose, NGINX Reverse proxy, Lets Encrypt
Last updated 2/2023
Hindi

What you'll learn

  • Host Multiple Domains on one Virtual Machine
  • Learn Docker and Docker-Compose
  • Routing Requests using NGINX reverse proxy
  • Configure HTTPS/SSL using Lets Encrypt
  • Install Wordpress inside docker using docker-compose

Course content

2 sections6 lectures53m total length
  • Wordpress Docker Nginx on DigitalOcean - p15:54

    Run WordPress inside a docker container using docker-compose on DigitalOcean Platform.


    This video is all about an introduction to a course on how to run an instance on DigitalOcean that is configured correctly to run docker and docker-compose.  Then WordPress is installed via docker-compose.

  • Install Wordpress inside Docker Container using docker-compose - p213:26

    Run WordPress inside docker container using docker-compose on DigitalOcean Platform.

    This video shows how to install wordpress inside docker container using docker-compose.

  • How to point your domain at DigitalOcean Droplet - p38:01

    Point your domain name to a DigitalOcean.


    This video shows you how to connect your domain name to a DigitalOcean Droplet.  In this case, we are pointing to the Wordpress instance running on docker that was set up in the last video.

  • Configure NGINX Reverse Proxy to point Wordpress running inside container - p410:43

    This video shows you how to set up an NGINX Reverse Proxy to route traffic to anything running in docker.  In this case, it'll route to the Wordpress instance we have been building over the past few videos.


    We need to do this before we can secure our domain name with HTTPS using lets encrypt


    Code snippet for nginx configuration:

    server {

    root /var/www/html;

            listen 80;

            listen [::]:80;

            server_name yourdomain.com www.yourdomain.com;

            location / {

                proxy_pass         http://127.0.0.1:8080;

                proxy_redirect     off;

                proxy_set_header   Host $host;

                proxy_set_header   X-Real-IP $remote_addr;

                proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;

                proxy_set_header   X-Forwarded-Host $server_name;

                proxy_set_header   X-Forwarded-Proto $scheme;

            }

    }


  • Setup HTTPS using Lets Encrypt and NGINX - 55:39

    Finally set up HTTPS/SSL Certificate to access on our Wordpress Docker instance running on Droplet.

    Although this shows setup for Wordpress, this will work for anything running via an NGINX reverse proxy.  As usual, everything demonstrated in this video is free; in this case the SSL/TLS certificates are provided by LetsEncrypt.


    sudo add-apt-repository ppa:certbot/certbot

    sudo apt update

    sudo apt install -y python3-certbot-nginx

    sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com

    sudo service nginx restart

Requirements

  • Basic shell commands

Description

सिंगल वर्चुअल सर्वर पर मल्टीपल वर्डप्रेस साइट होस्ट करें

DigitalOcean Platform पर docker-compose का उपयोग कर एक docker कंटेनर के अंदर सिंगल वर्चुअल सर्वर पर कई वर्डप्रेस साइट होस्ट करें।

यह कोर्स सभी के बारे में है कि DigitalOcean पर एक इंस्टेंस कैसे चलाया जाए जो डॉक और डॉक-कंपोज़ को चलाने के लिए ठीक से कॉन्फ़िगर किया गया हो। फिर वर्डप्रेस को डॉकटर-कंपोज़ के माध्यम से इंस्टॉल किया जाता है। फिर हम देखेंगे कि docker में चलने वाली किसी भी चीज़ के लिए ट्रैफ़िक को रूट करने के लिए NGINX रिवर्स प्रॉक्सी कैसे सेट करें।

हमें यह करने की आवश्यकता है इससे पहले कि हम अपने डोमेन नाम को HTTPS के साथ सुरक्षित कर सकें, चलो एनक्रिप्ट का उपयोग कर सकते हैं।


More Information about docker:

Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.

In computing, a virtual machine (VM) is the virtualization/emulation of a computer system. Virtual machines are based on computer architectures and provide functionality of a physical computer. Their implementations may involve specialized hardware, software, or a combination.

Who this course is for:

  • Wordpress Developers