Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.