This worked for me without and issue. Try and copy.
log_format proxy '$remote_addr [$time_local]'
'with SSL Server name "$ssl_server_name" '
'proxying to "$selected_upstream" '
'$protocol $status $bytes_sent $bytes_receiv
On Sun, Mar 17, 2019 at 01:21:32AM -0400, yuy wrote:
Hi there,
> I am trying to enable access log for stream on 1.15.9-1~xenial but
> log_format definition doesn't seem to work. Config syntax check fails as if
> stream log_format was not defined
The error reports that "proxy" is unknown on line
I am trying to enable access log for stream on 1.15.9-1~xenial but
log_format definition doesn't seem to work. Config syntax check fails as if
stream log_format was not defined
>
$ cat nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid/var/run/ng