Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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
share|improve this answer
Thank you, that worked perfectly! – paullb May 31 '13 at 8:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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