@cryptotaxi247 / infra-1 / commits / e3b6a0e0

svn path=/configurations/trunk/tud/; revision=34583

svn path=/configurations/trunk/tud/; revision=34583

Eelco Dolstra committed Jul 9, 2012 at 15:51 UTC e3b6a0e00ab9a0bf2834097cd5456b97ea109a63
1 file changed +13
cartman.nix
+13
@@ -53,6 +53,9 @@ let
53 { urlPath = "/releases";
54 dir = "/data/releases";
55 }
56 + { urlPath = "/binary-cache";
57 + dir = "/data/releases/binary-cache";
58 + }
59 ];
60
61 servedFiles =
@@ -76,6 +79,13 @@ let
79 ProxyPassReverse /mturk-sandbox http://wendy:3001/mturk-sandbox
80
81 MaxKeepAliveRequests 0
82 +
83 + # Use a very short error message for 404s in the binary
84 + # cache, since those are very frequent and not generally
85 + # seen by humans.
86 + <Location /releases/binary-cache>
87 + ErrorDocument 404 "No such file."
88 + </Location>
89 '';
90
91 extraSubservices =
@@ -246,6 +256,7 @@ rec {
256
257 httpd = {
258 enable = true;
259 + multiProcessingModule = "worker";
260 logPerVirtualHost = true;
261 adminAddr = "e.dolstra@tudelft.nl";
262 hostName = "localhost";
@@ -263,6 +274,8 @@ rec {
274 </Location>
275
276 ExtendedStatus On
277 +
278 + StartServers 15
279 '';
280
281 servedFiles =