Skip to content

Commit a5a57b4

Browse files
authored
Merge pull request #36 from bryanlatten/feature-error_logfix
Nginx: error_log failing container
2 parents 67c1793 + d893b8b commit a5a57b4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

container/root/etc/fix-attrs.d/02-tmp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/tmp/.nginx true www-data 0644 2700
33
/tmp true www-data 0644 2700
44

5+
# Unfortunately, even if it isn't used, it gets a lock by nginx
6+
/var/log/nginx/error.log true www-data 0644 2700

container/root/etc/nginx/nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ worker_processes auto;
1414

1515
pid /tmp/.nginx/nginx.pid;
1616

17+
error_log /dev/stdout warn;
18+
1719
events {
1820
# @see http://serverfault.com/questions/209014/how-can-i-observe-what-nginx-is-doing-to-solve-1024-worker-connections-are-n
1921
worker_connections 1024;
@@ -30,7 +32,6 @@ http {
3032

3133
log_format minimal '$request_method $request_uri $status';
3234

33-
error_log /dev/stdout;
3435
access_log /dev/stdout main;
3536

3637
sendfile on;

0 commit comments

Comments
 (0)