* Virtual hosts: inherit adminAddr from the main server.
svn path=/nixos/trunk/; revision=10756
This commit is contained in:
parent
d7dd9179ce
commit
a2c20a9d29
|
@ -4,6 +4,8 @@ let
|
||||||
|
|
||||||
cfg = config.services.httpd;
|
cfg = config.services.httpd;
|
||||||
|
|
||||||
|
mainCfg = cfg;
|
||||||
|
|
||||||
startingDependency = if config.services.gw6c.enable then "gw6c" else "network-interfaces";
|
startingDependency = if config.services.gw6c.enable then "gw6c" else "network-interfaces";
|
||||||
|
|
||||||
httpd = pkgs.apacheHttpd;
|
httpd = pkgs.apacheHttpd;
|
||||||
|
@ -16,6 +18,11 @@ let
|
||||||
canonicalName =
|
canonicalName =
|
||||||
"http://${cfg.hostName}" +
|
"http://${cfg.hostName}" +
|
||||||
(if cfg.httpPort != 80 then ":${toString cfg.httpPort}" else "");
|
(if cfg.httpPort != 80 then ":${toString cfg.httpPort}" else "");
|
||||||
|
|
||||||
|
# Admin address: inherit from the main server if not specified for
|
||||||
|
# a virtual host.
|
||||||
|
adminAddr = if cfg.adminAddr != "" then cfg.adminAddr else mainCfg.adminAddr;
|
||||||
|
|
||||||
serverConfig = cfg;
|
serverConfig = cfg;
|
||||||
fullConfig = config; # machine config
|
fullConfig = config; # machine config
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,7 +13,7 @@ let
|
||||||
logDir = "${config.dataDir}/log";
|
logDir = "${config.dataDir}/log";
|
||||||
postCommitHook = "/var/run/current-system/sw/bin/svn-server-post-commit-hook";
|
postCommitHook = "/var/run/current-system/sw/bin/svn-server-post-commit-hook";
|
||||||
fsType = "fsfs";
|
fsType = "fsfs";
|
||||||
adminAddr = serverInfo.serverConfig.adminAddr;
|
adminAddr = serverInfo.adminAddr;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue