Skip to content

Commit 9ecf070

Browse files
author
Kim Fehrs
committed
fix /dev/stderr bug on ubuntu and reintroduce access_bad.log file
1 parent 950a925 commit 9ecf070

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

conf.d/nginx.conf.envsubst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
user nginx;
22
worker_processes 1;
33

4-
error_log /dev/stderr notice;
4+
error_log stderr notice;
55
pid /var/run/nginx.pid;
66

77
events {
@@ -99,15 +99,16 @@ http {
9999

100100
${INCLUDE_DEFAULT_RATE_LIMITS}
101101

102-
error_log /dev/stderr notice;
102+
error_log stderr notice;
103103
server {
104104
listen 443 ssl;
105105
server_name localhost;
106106

107107
include conf.d/enable-compression.conf;
108108

109-
access_log /dev/stderr json_analytics if=${DOLLAR}loggable;
110-
access_log /dev/stdout json_analytics;
109+
access_log stderr json_analytics if=${DOLLAR}loggable;
110+
access_log $NGINX_LOGS_DIR/access_bad.log json_analytics if=${DOLLAR}loggable;
111+
access_log stdout json_analytics;
111112

112113
#include conf.d/cloudflare-allow.conf;
113114
#deny all;

0 commit comments

Comments
 (0)