diff options
-rw-r--r-- | gnu/packages/web.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 4ba3258600..825b363629 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -580,6 +580,15 @@ the same, being completely separated from the Internet.") (("\"Server: .*;") "\"Server: Apache/2.4.9 (Unix)\";") ;; Never send Server: headers. (("r->headers_out\\.server == NULL") "0")))) + (add-after 'unpack 'patch-installation-file-names + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share/nginx"))) + (substitute* "auto/install" + (("\\$NGX_CONF_PATH" match) + (string-append share "/examples/" match)) + (("`dirname \"\\$NGX_PID_PATH\"`") "/") + (("`dirname \"\\$NGX_HTTP_LOG_PATH\"`") "/"))))) (add-before 'configure 'patch-/bin/sh (lambda _ (substitute* "auto/feature" |