Nginx show full url in access log
To show the full URL in nginx access log, add the following
1 2 3 4 |
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 reverse proxy, replace $remote_addr with $http_x_forwarded_for
See Nginx