summary refs log tree commit diff
path: root/pkgs/servers
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 /pkgs/servers
parentcca0c894a13ec398de8b046174239513197f5c74 (diff)
downloadnixpkgs-336a6f471f1e40d4a440b4176c2a1b8db65fe007.tar
nixpkgs-336a6f471f1e40d4a440b4176c2a1b8db65fe007.tar.gz
nixpkgs-336a6f471f1e40d4a440b4176c2a1b8db65fe007.tar.bz2
nixpkgs-336a6f471f1e40d4a440b4176c2a1b8db65fe007.tar.lz
nixpkgs-336a6f471f1e40d4a440b4176c2a1b8db65fe007.tar.xz
nixpkgs-336a6f471f1e40d4a440b4176c2a1b8db65fe007.tar.zst
nixpkgs-336a6f471f1e40d4a440b4176c2a1b8db65fe007.zip
nixos/httpd: symlink apache configuration to /etc/httpd/httpd.conf for use in the apachectl command
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/http/apache-httpd/2.4.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/servers/http/apache-httpd/2.4.nix b/pkgs/servers/http/apache-httpd/2.4.nix
index d5da6df8d68..252365098dd 100644
--- a/pkgs/servers/http/apache-httpd/2.4.nix
+++ b/pkgs/servers/http/apache-httpd/2.4.nix
@@ -39,6 +39,7 @@ stdenv.mkDerivation rec {
   prePatch = ''
     sed -i config.layout -e "s|installbuilddir:.*|installbuilddir: $dev/share/build|"
     sed -i support/apachectl.in -e 's|@LYNX_PATH@|${lynx}/bin/lynx|'
+    sed -i support/apachectl.in -e 's|$HTTPD -t|$HTTPD -t -f /etc/httpd/httpd.conf|'
   '';
 
   # Required for ‘pthread_cancel’.