chiark / gitweb /
vhost.m4: New virtual hosting knobs in `domains.conf'.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 26 Jan 2014 13:49:48 +0000 (13:49 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 26 Jan 2014 13:49:48 +0000 (13:49 +0000)
`final' is a boolean indicating whether local parts should be looked
up using the system-global rules.

`home' is a home directory to set, which is useful if filter files are
being used.

vhost.m4

index 5e81f56b8daff629c66a0910e6dbde67501cacec..d37edd9ea0c709aec1c0dcf2fdd6ab06dcd98f11 100644 (file)
--- a/vhost.m4
+++ b/vhost.m4
@@ -29,6 +29,8 @@ m4_define(<:VHOST:>,
 m4_define(<:VHOST_FILTER:>,
        <:FILTER_BASE
        VHOST(<:$1:>)
+       router_home_directory = DOMKV(home, {$value} fail)
+       more = ${if bool{DOMKV(final, {$value}{true})} {false} {true}}
        $2 = ${expand:DOMKV($1, {$value} fail)}:>)
 m4_define(<:VHOST_USER:>,
        <:user = DOMKV(owner, {$value}{CONF_filter_user})