Ravindra BagaleCourses & study guides

13. Multiple Websites on One Server and HTTPS with Certbot

Chala mitrano, companies madhe ekach server var kadhi kadhi anek websites chaltat – yourdomain.com, blog.yourdomain.com, shop.yourdomain.com. Nginx madhe yala server blocks mhantat, Apache madhe virtual hosts. Aaj aapan he Amazon Linux aani Ubuntu dogha var karuya, aani mag Certbot ne pratyek site la free HTTPS lavuya. Shevti HTTPS nit configure kela aahe ka te test kasa karaycha te pan baghuya. Ekdum simple aahe – ek site samjli ki dahavi pan tashich.

What you will learn in this chapter

  • How name-based virtual hosting works (the Host header)
  • Multiple sites with Nginx server blocks on Amazon Linux 2023 and Ubuntu
  • Multiple sites with Apache virtual hosts on Amazon Linux 2023 and Ubuntu
  • A safe catch-all default site and testing without DNS
  • Free HTTPS with Certbot, automatic renewal and HTTP → HTTPS redirect
  • Checking and hardening your TLS setup

Concepts in this chapter

  1. 13.1How Name-Based Virtual Hosting Works
  2. 13.2Multiple Sites with Nginx (Amazon Linux 2023 and Ubuntu)
  3. 13.3Multiple Sites with Apache (Amazon Linux 2023 and Ubuntu)
  4. 13.4HTTPS with Certbot (Let's Encrypt)
  5. 13.5Checking and Hardening Your TLS Setup

The chapter recap is at the end of the last concept page.