Nginx show full url in access log
To show the full URL in the nginx access log, add the following
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request_method $scheme://$host$request_uri $server_protocol" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $request_time';
If you are behind a reverse proxy, replace $remote_addr with $http_x_forwarded_for
See Nginx