* Use sub-modules for httpd virtual hosts. This add documentation entries
and allow non-intrusive extensions of virtual hosts. svn path=/nixos/trunk/; revision=18107
This commit is contained in:
parent
ff1d9969fb
commit
0e22df1587
@ -6,7 +6,7 @@
|
|||||||
{config, pkgs, ...}:
|
{config, pkgs, ...}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs.lib) mkOption addDefaultOptionValues;
|
inherit (pkgs.lib) mkOption addDefaultOptionValues types;
|
||||||
|
|
||||||
perServerOptions = {forMainServer}: {
|
perServerOptions = {forMainServer}: {
|
||||||
|
|
||||||
@ -161,6 +161,7 @@ in
|
|||||||
documentRoot = "/data/webroot-bar";
|
documentRoot = "/data/webroot-bar";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
type = with types; listOf optionSet;
|
||||||
description = ''
|
description = ''
|
||||||
Specification of the virtual hosts served by Apache. Each
|
Specification of the virtual hosts served by Apache. Each
|
||||||
element should be an attribute set specifying the
|
element should be an attribute set specifying the
|
||||||
@ -168,16 +169,13 @@ in
|
|||||||
are the non-global options permissible for the main host.
|
are the non-global options permissible for the main host.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Add the default value for each function which is not defined.
|
options = [
|
||||||
# This should be replaced by sub-modules.
|
vhostOptions
|
||||||
apply =
|
];
|
||||||
map (vhost:
|
|
||||||
addDefaultOptionValues vhostOptions vhost
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
// perServerOptions {forMainServer = true;}
|
// perServerOptions {forMainServer = true;}
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user