This is a discussion on HostnameLookups Off - No, I really mean it within the Apache Web Server forums, part of the Web Server and Related Forums category; x-no-archive: yes I am running Apache 2.0.47 on Windows XP. Apache is running as a service. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
x-no-archive: yes
I am running Apache 2.0.47 on Windows XP. Apache is running as a service. One relatively minor problem: Although I have "HostnameLookups Off" specified in my httpd.conf file, everything in the access.log is still being resolved to a host name; just as if I had "HostnameLookups On" specified instead. Here is a reference for the "HostnameLookups" command: http://httpd.apache.org/docs-2.0/mod...ostnamelookups I have of course restarted the service; it's not that the configuration change hasn't taken effect. I am not pathing to a different httpd.conf file. And I don't have duplicate "HostnameLookups" entries in httpd.conf, or any other obvious goof that I can find. Accesses are being logged just fine, and I am not mistakenly looking at old entries, when "HostnameLookups On" was enabled. I've tried deleting access.log. Nothing has worked. This seems bizarre, and it has me stumped. Any ideas are welcome. |
|
|||
|
djs <djs@fakeisp.com> wrote:
> x-no-archive: yes > > I am running Apache 2.0.47 on Windows XP. Apache is running as a > service. > > One relatively minor problem: Although I have "HostnameLookups Off" > specified in my httpd.conf file, everything in the access.log is still > being resolved to a host name; just as if I had "HostnameLookups On" > specified instead. Here is a reference for the "HostnameLookups" > command: > > http://httpd.apache.org/docs-2.0/mod...ostnamelookups > > I have of course restarted the service; it's not that the > configuration change hasn't taken effect. I am not pathing to a > different httpd.conf file. And I don't have duplicate > "HostnameLookups" entries in httpd.conf, or any other obvious goof > that I can find. Accesses are being logged just fine, and I am not > mistakenly looking at old entries, when "HostnameLookups On" was > enabled. I've tried deleting access.log. Nothing has worked. > > This seems bizarre, and it has me stumped. Any ideas are welcome. Hah--well, as usual, the very act of posting this on Usenet increased my IQ by 50 points. The "problem" (more like "consternation") was caused by the fact that I was using "Deny from" host name entries (like "Deny from .ad", etc.). This behavior is even mentioned in the docs: http://httpd.apache.org/docs-2.0/mod...ostnamelookups "Regardless of the setting, when mod_access is used for controlling access by hostname, a double reverse lookup will be performed. This is necessary for security." It's all so obvious now... |