summary refs log tree commit diff
path: root/nixos/modules/services/web-servers/apache-httpd
diff options
context:
space:
mode:
authorDan Peebles <pumpkingod@gmail.com>2017-01-05 21:19:07 -0500
committerDan Peebles <pumpkingod@gmail.com>2017-01-05 21:19:16 -0500
commitdf7b4f4f6f12ff090f48108838353531aff92507 (patch)
tree759215b670ae13e500b142c9d781ac9004c6e0f3 /nixos/modules/services/web-servers/apache-httpd
parent2a57c1e60f3cfa4342e283e965cf016f7b44bd04 (diff)
downloadnixlib-df7b4f4f6f12ff090f48108838353531aff92507.tar
nixlib-df7b4f4f6f12ff090f48108838353531aff92507.tar.gz
nixlib-df7b4f4f6f12ff090f48108838353531aff92507.tar.bz2
nixlib-df7b4f4f6f12ff090f48108838353531aff92507.tar.lz
nixlib-df7b4f4f6f12ff090f48108838353531aff92507.tar.xz
nixlib-df7b4f4f6f12ff090f48108838353531aff92507.tar.zst
nixlib-df7b4f4f6f12ff090f48108838353531aff92507.zip
httpd module: don't create documentRoot directory if it doesn't exist
It hides bugs and do you ever actually want to serve up an empty directory?
It was pretty confusing to me when it tried to write into a read-only store
path because I accidentally pointed it to the wrong store path.
Diffstat (limited to 'nixos/modules/services/web-servers/apache-httpd')
-rw-r--r--nixos/modules/services/web-servers/apache-httpd/default.nix7
1 files changed, 0 insertions, 7 deletions
diff --git a/nixos/modules/services/web-servers/apache-httpd/default.nix b/nixos/modules/services/web-servers/apache-httpd/default.nix
index 84c608ca2ab1..dc0ca501a484 100644
--- a/nixos/modules/services/web-servers/apache-httpd/default.nix
+++ b/nixos/modules/services/web-servers/apache-httpd/default.nix
@@ -709,13 +709,6 @@ in
             ''}
             mkdir -m 0700 -p ${mainCfg.logDir}
 
-            ${optionalString (mainCfg.documentRoot != null)
-            ''
-              # Create the document root directory if does not exists yet
-              mkdir -p ${mainCfg.documentRoot}
-            ''
-            }
-
             # Get rid of old semaphores.  These tend to accumulate across
             # server restarts, eventually preventing it from restarting
             # successfully.