I'd like to add a CustomLog directive to my apache configuration to log the full URL requested (or at least the host portion of the URL). I have several domains being handled by the same instance of apache, and would like to be able to distinguish the domains in the logs (as now all I see is "GET /"). I see in the documentation on LogFormat it lists %U to print the path portion of the URL, but I'm looking for the host.
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
|||
|
|
|
Keep reading the
Which means you could include in your configuration:
The %v will always be the value of |
|||||||||
|
|
'%v' is the ServerName might be what you want? |
|||
|
|
Add Something like this:
|
|||||
|