Skip to content

Instantly share code, notes, and snippets.

@krusynth
Created December 6, 2012 21:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save krusynth/4228565 to your computer and use it in GitHub Desktop.
Save krusynth/4228565 to your computer and use it in GitHub Desktop.
Apache log format that shows the hostname
LogFormat "%h %l %u %t \"%m http://%{Host}i%U %H\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" hostnames
CustomLog "/private/var/log/apache2/access_log" hostnames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment