CertGrid CertGrid
Hands-on Lab·LPIC-2

Two virtual hosts, TLS, and a reverse proxy

Topic 208 is weight 11 and names virtual hosts, TLS and reverse proxying. This guide serves two names from one address and proves each from a second machine, adds a self-signed certificate and reads the exact refusal a client gives it, then puts Apache in front of a backend bound to loopback - which the client can reach through the proxy and not directly.

202: HTTP Services Guide 24 of 29 Intermediate

A web server and a client. Every request on this page is made from the machine that is not running Apache, because a virtual host tested from itself proves almost nothing.
Server NameIP AddressOSRolesCPURAMHDD
LPIC2-A01192.168.0.78Ubuntu 26.04 LTSPrimary service host - BIND, Apache, Samba, Postfix. Topic 204 RAID runs on loop devices; this machine has no spare disk2 Core4 GB50 GB
LPIC2-C01192.168.0.80Ubuntu 26.04 LTSClient - resolves, mounts and connects, so every service is proven from a machine that is not running it2 Core4 GB50 GB

This guide includes

Use this when one server has to host several sites, or when an application listening on a high port needs to be reachable over 443. This matters because name-based virtual hosting depends on a header the client sends, and because a certificate that works with -k and fails without it is telling you something specific about trust rather than about encryption.

Before you start

  1. One address, two names, two sites

  2. Asking for each name, from the other machine

  3. The same site over TLS

  4. A reverse proxy in front of something else

  5. Putting the machine back

Official sources