3
0
Fork 0
forked from mirrors/nixpkgs

* Allow aliases for each virtual host.

svn path=/nixos/trunk/; revision=10754
This commit is contained in:
Eelco Dolstra 2008-02-19 14:41:20 +00:00
parent 5122633592
commit d7dd9179ce
2 changed files with 10 additions and 0 deletions

View file

@ -165,6 +165,8 @@ let
in ''
ServerName ${serverInfo.canonicalName}
${concatMapStrings (alias: "ServerAlias ${alias}\n") cfg.serverAliases}
${if isMainServer || cfg.adminAddr != "" then ''
ServerAdmin ${cfg.adminAddr}
'' else ""}

View file

@ -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 {
default = 80;
description = "