commit 10d2ffe53ad5c28b3cc7134131f4a1b24a162d7d
Author:     Laslo Hunhold <[email protected]>
AuthorDate: Fri Jul 21 18:36:02 2017 +0200
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Fri Jul 21 18:36:02 2017 +0200

    Fix example regex in vhosts
    
    Thanks Hiltjo for noticing this!

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

Reply via email to