0Pricing
Linux Server Deployment & SSH Mastery · Lesson

Basic Virtual Host Configuration

Set up virtual hosts (or server blocks) to host multiple websites on a single server using different domain names.

Hosting Multiple Websites

Imagine you have one powerful server, but you want to host several different websites, each with its own domain name (like myshop.com and myblog.com).

How can one server handle this efficiently without needing a separate machine for each site?

What are Virtual Hosts?

This is where Virtual Hosts (Apache) or Server Blocks (Nginx) come in!

  • They are configuration units that allow a single web server to host multiple domain names.
  • Each domain can have its own document root (where its files live), logs, and specific settings.
  • This saves resources and simplifies server management.

All lessons in this course

  1. Installing Nginx/Apache
  2. Hosting Static Websites
  3. Basic Virtual Host Configuration
  4. Enabling HTTPS with Let's Encrypt
← Back to Linux Server Deployment & SSH Mastery