Last active
December 15, 2016 11:50
-
-
Save cbrunnkvist/0082aec281d745a0103ef8e784a75ada to your computer and use it in GitHub Desktop.
Docker LAMP development image: Echo access- and error log from dev server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c12288f5242d84a497c60452562b535f3044f1da Mon Sep 17 00:00:00 2001 | |
From: Conny Brunnkvist <[email protected]> | |
Date: Thu, 15 Dec 2016 18:42:13 +0700 | |
Subject: [PATCH] Echo access- and error log from dev server | |
--- | |
devel/Dockerfile | 1 + | |
1 file changed, 1 insertion(+) | |
diff --git a/devel/Dockerfile b/devel/Dockerfile | |
index 1c96bdb..77da402 100644 | |
--- a/devel/Dockerfile | |
+++ b/devel/Dockerfile | |
@@ -1,2 +1,3 @@ | |
FROM ttconsulting/apache-php-5.4-server | |
RUN echo -e "<Directory /var/www/html>\n AllowOverride All\n </Directory>\n" > /etc/httpd/conf.d/90-custom.conf | |
+RUN ln -sf /proc/self/fd/1 /var/log/httpd/access_log && ln -sf /proc/self/fd/2 /var/log/httpd/error_log | |
-- | |
2.9.3 (Apple Git-75)+GitX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment