apache-httpd: Make 2.4 the default

The NixOS 14.11 release is a good time to finally make 2.4 the
default.
This commit is contained in:
Eelco Dolstra
2014-11-06 14:55:44 +01:00
parent 85d23f5292
commit b3eb981a95
4 changed files with 22 additions and 9 deletions
+3 -4
View File
@@ -22,20 +22,19 @@ in
{ services.httpd.enable = true;
services.httpd.adminAddr = "bar@example.org";
services.httpd.extraModules = ["proxy_balancer"];
services.httpd.extraModules = [ "proxy_balancer" "lbmethod_byrequests" ];
services.httpd.extraConfig =
''
ExtendedStatus on
<Location /server-status>
Order deny,allow
Allow from all
Require all granted
SetHandler server-status
</Location>
<Proxy balancer://cluster>
Allow from all
Require all granted
BalancerMember http://${nodes.backend1.config.networking.hostName} retry=0
BalancerMember http://${nodes.backend2.config.networking.hostName} retry=0
</Proxy>