diff options
author | Dan Peebles <pumpkingod@gmail.com> | 2017-01-05 21:19:07 -0500 |
---|---|---|
committer | Dan Peebles <pumpkingod@gmail.com> | 2017-01-05 21:19:16 -0500 |
commit | df7b4f4f6f12ff090f48108838353531aff92507 (patch) | |
tree | 759215b670ae13e500b142c9d781ac9004c6e0f3 | |
parent | 2a57c1e60f3cfa4342e283e965cf016f7b44bd04 (diff) | |
download | nixlib-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.
-rw-r--r-- | nixos/modules/services/web-servers/apache-httpd/default.nix | 7 |
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. |