Lesson 2 of 11 · Fundamentals
Virtual hosts — how nginx picks the site, default block and domain redirects
Objective
Understand exactly which server nginx uses for a request, shut the door on unknown domain names, and redirect secondary domains cleanly to the main domain.
This lesson is part of the full course
Unlock Nginx and Apache Web Servers in Production to read every lesson, do the exercises, access the simulations and earn your certificate.
Already enrolled? Log in.