w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
nginx: [emerg] invalid parameter "$remote_addr - $remote_user [$time_local] $request " in /etc/nginx/nginx.conf:24

You must set up log_format before access_log, not with one directive.

log_format main '$remote_addr - $remote_user [$time_local]
"$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent"';

access_log /var/log/nginx/access.log main;

nginx docs for log settings





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.