I'm using Nginx as a web server.
Is there any way to extract http_referer_hostname
and put it in access log.
For example: if $http_referer
is "http://example.com/?somedata"
, how to log only hostname part (example.com
) to the access.log
line?