From the course: NGINX for Beginners
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Virtual servers and multiple sites - Nginx Tutorial
From the course: NGINX for Beginners
Virtual servers and multiple sites
In this section, we'll begin by diving a little more into virtual servers and how we can host multiple websites using one NGINX server. So imagine you live in a building in one of these apartments, right? Let's say your address is 1234 Main Street, apartment 301. When Amazon delivers your package, The first thing they'll do is arrive at 1, 2, 3, 4 Main Street, right? And once they're in the building, they will locate your apartment number. A virtual server is a lot like your apartment and think of the server as the building. A virtual server and NGINX is a way to use the same web server to handle different websites through one physical server. Now, that one virtual server can be one to one. But if we add more than one virtual server, we can have two websites to one server. As an example, this is what Google services might look like if they were to use NGINX. Whenever a user requests Google search engine, NGINX makes sure that the request is sent to the correct virtual server. when…
Contents
-
-
-
-
(Locked)
Intermediate config introduction1m 21s
-
(Locked)
Virtual servers and multiple sites5m 36s
-
(Locked)
Configure multiple sites demo10m 40s
-
(Locked)
URL redirect and rewrite19m 53s
-
(Locked)
Configure URL redirect demo8m 30s
-
(Locked)
Configure URL rewrite demo3m 56s
-
(Locked)
Load balancer10m 32s
-
(Locked)
Load balancer demo9m 42s
-
(Locked)
Reverse proxy5m 57s
-
(Locked)
Reverse proxy demo7m 34s
-
(Locked)
Summary2m 8s
-
(Locked)
-
-
-