apache-httpd: Avoid NameVirtualHost in >= v2.4.
NameVirtualHost no longer has any effect on version 2.4 and just emits ugly warnings, so let's not use it if we use 2.4. More information: http://httpd.apache.org/docs/2.4/upgrading.html#misc Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
a88453fbaa
commit
5655ec0efa
|
@ -373,7 +373,9 @@ let
|
||||||
${let
|
${let
|
||||||
ports = map getPort allHosts;
|
ports = map getPort allHosts;
|
||||||
uniquePorts = uniqList {inputList = ports;};
|
uniquePorts = uniqList {inputList = ports;};
|
||||||
in concatMapStrings (port: "NameVirtualHost *:${toString port}\n") uniquePorts
|
isNeeded = versionOlder httpd.version "2.4";
|
||||||
|
directives = concatMapStrings (port: "NameVirtualHost *:${toString port}\n") uniquePorts;
|
||||||
|
in optionalString isNeeded directives
|
||||||
}
|
}
|
||||||
|
|
||||||
${let
|
${let
|
||||||
|
|
Loading…
Reference in New Issue