Hello,

our global config of Apache defines:

HostnameLookups Off

So we expected, that the REMOTE_ADDR part (%h) in our logfiles are only IP-addresses. Now we noticed, that a customer is using a Deny rule with a hostname rather than an IP-address in his .htaccess file which causes Apache to resolve REMOTE_ADDR. And once Apache has done that, it obviously stores the resolved hostname in the logfile rather than the IP-address.

When I looked at http://httpd.apache.org/docs/2.0/mod/mod_log_config.html recently I saw, that instead of %h for logging the REMOTE_ADDR %a can be used. Is it save to rely on an IP-address stored with %a or might there be any special conditions like with %h?

Regards
Marten

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to