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

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