From 7be22fed4be8f131fd1c997899c8b12e538a3e30 Mon Sep 17 00:00:00 2001 From: Francesco Cozzuto Date: Fri, 17 Oct 2025 12:21:26 +0200 Subject: [PATCH] Add comment to 060_virtual_hosts_over_https.c about adding entries to /etc/hosts for testing --- examples/server/060_virtual_hosts_over_https.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/server/060_virtual_hosts_over_https.c b/examples/server/060_virtual_hosts_over_https.c index 4ee9770..4a90659 100644 --- a/examples/server/060_virtual_hosts_over_https.c +++ b/examples/server/060_virtual_hosts_over_https.c @@ -10,6 +10,16 @@ int main(void) { http_global_init(); + // To test this program you need to add the following + // lines to your hosts file: + // + // 127.0.0.1 websiteA.com + // 127.0.0.1 websiteB.com + // 127.0.0.1 websiteC.com + // + // That you can find at /etc/hosts on Linux and + // C:\Windows\System32\drivers\etc\hosts on Windows + // First, create three certificates for the domains: // // websiteA.com