[2010/02] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

About “HostnameLookups off” of Apache.

2010.02.09(Tue)

In spite of setting “HostnameLookups off”, my httpd records hostnames in “access.log”. I always wonder about it.

On Feb. 8, I had the following log.
localhost – - [07/Feb/2010:13:32:31 +0900] “GET ~ HTTP/1.1″ 200 50288
“~” “Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.10″

I didn’t remember my access as a localhost during this time zone. I think it’s maybe the misidentification of an IP address.
But because of described above, I couldn’t know its IP address. So, this time, I buckle down to examine its reason.

At last, I found out it. Though it might be a well-known fact, Apache makes “HostnameLookups on” of a sentence like “Deny from xxx.xxx.xxx.xxx #XX xxxx.com”. Until now, I assumed mistakenly that the “#” and following words were recognized as a comment.

 


 

 Similar Posts:

Leave a comment

Until 24 hours, you can edit your comment from the same browser if the same PC.
But, within 24 hours, the comment will be uneditable when it has any newer comments.