Last active
October 3, 2024 03:25
-
-
Save ricsiga/0781e545487c976a17a5d0147f1da1e8 to your computer and use it in GitHub Desktop.
add hostname to nginx access.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_format vhost '$host - $remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $request_time'; | |
access_log /var/log/nginx/access.log vhost; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment