Skip to content

Instantly share code, notes, and snippets.

@nosuchuser
Forked from krusynth/hostname.conf
Created April 20, 2018 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nosuchuser/daec3b6ab9860acb45b530be872f8944 to your computer and use it in GitHub Desktop.
Save nosuchuser/daec3b6ab9860acb45b530be872f8944 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