* Allow aliases for each virtual host.
svn path=/nixos/trunk/; revision=10754
This commit is contained in:
parent
5122633592
commit
d7dd9179ce
@ -165,6 +165,8 @@ let
|
|||||||
in ''
|
in ''
|
||||||
ServerName ${serverInfo.canonicalName}
|
ServerName ${serverInfo.canonicalName}
|
||||||
|
|
||||||
|
${concatMapStrings (alias: "ServerAlias ${alias}\n") cfg.serverAliases}
|
||||||
|
|
||||||
${if isMainServer || cfg.adminAddr != "" then ''
|
${if isMainServer || cfg.adminAddr != "" then ''
|
||||||
ServerAdmin ${cfg.adminAddr}
|
ServerAdmin ${cfg.adminAddr}
|
||||||
'' else ""}
|
'' else ""}
|
||||||
|
@ -14,6 +14,14 @@
|
|||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
serverAliases = mkOption {
|
||||||
|
default = [];
|
||||||
|
example = ["www.example.org" "www.example.org:8080" "example.org"];
|
||||||
|
description = "
|
||||||
|
Additional names of virtual hosts served by this virtual host configuration.
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
httpPort = mkOption {
|
httpPort = mkOption {
|
||||||
default = 80;
|
default = 80;
|
||||||
description = "
|
description = "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user