quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 10d2ffe53ad5c28b3cc7134131f4a1b24a162d7d
parent a80f984ea33c29601da332c272b51e6274bb0d66
Author: Laslo Hunhold <dev@frign.de>
Date:   Fri, 21 Jul 2017 18:36:02 +0200

Fix example regex in vhosts

Thanks Hiltjo for noticing this!

Diffstat:
config.def.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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 */