about summary refs log tree commit diff
path: root/nixos/modules/services/web-servers/apache-httpd
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2020-01-08 10:37:46 -0500
committerAaron Andersen <aaron@fosslib.net>2020-01-08 10:37:46 -0500
commit336a6f471f1e40d4a440b4176c2a1b8db65fe007 (patch)
tree56c7e1fd61517abbbb718beafb793316224e374d /nixos/modules/services/web-servers/apache-httpd
parentcca0c894a13ec398de8b046174239513197f5c74 (diff)
nixos/httpd: symlink apache configuration to /etc/httpd/httpd.conf for use in the apachectl command
Diffstat (limited to 'nixos/modules/services/web-servers/apache-httpd')
-rw-r--r--nixos/modules/services/web-servers/apache-httpd/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/web-servers/apache-httpd/default.nix b/nixos/modules/services/web-servers/apache-httpd/default.nix
index 4460f89ec5c19..fd17e4b54f0f2 100644
--- a/nixos/modules/services/web-servers/apache-httpd/default.nix
+++ b/nixos/modules/services/web-servers/apache-httpd/default.nix
@@ -629,6 +629,9 @@ in
 
     environment.systemPackages = [httpd];
 
+    # required for "apachectl configtest"
+    environment.etc."httpd/httpd.conf".source = httpdConf;
+
     services.httpd.phpOptions =
       ''
         ; Needed for PHP's mail() function.