From 10d2ffe53ad5c28b3cc7134131f4a1b24a162d7d Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Fri, 21 Jul 2017 18:36:02 +0200 Subject: [PATCH] Fix example regex in vhosts Thanks Hiltjo for noticing this! --- config.def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 0b800bf..7abac23 100644 --- a/config.def.h +++ b/config.def.h @@ -19,8 +19,8 @@ static struct { const char *dir; regex_t re; } vhost[] = { - /* canonical host host regex directory */ - { "example.org", "^(www.)example.org$", "/example.org" }, + /* canonical host host regex directory */ + { "example.org", "^(www\.)?example.org$", "/example.org" }, }; /* mime-types */