looking at httpd's access log and I see requests but they all start at "/".

I have a few ServerAliases set up. Is there any way to see what domain (subdomain) the requests are coming in to?

1 Answer 1


Apache doesn't log the hostname by default, though you can change your Apache log format to log it. I prefer to log it in the otherwise useless second field, for example:

LogFormat "%h %{Host}i %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.