PDA

View Full Version : [ubuntu] Hardy + Apache2 + Hostnamelookups=Off doesn't work


ambrosa
February 14th, 2009, 06:06 AM
I've searched a solution but I've found none.

I've setup a little pesonal webserver using LAMP Ubuntu Hardy Server.
Apache works fine but it still resolve hostname in /var/log/apache2/access.log
I don't want this: I want simple IP address logged in access.log
In /etc/apache2/apache2.conf I've set HostnameLookups Off
The same thing in /etc/apache/sites-available/default
I've checked that all ALLOW/DENY options in every modules and site configuration use IP numbers and not literal hostname.

Any idea ?

spiderbatdad
February 14th, 2009, 07:46 AM
I would not edit apache2.conf specifically. Instead place config directives in httpd.conf

ambrosa
February 14th, 2009, 08:37 AM
I would not edit apache2.conf specifically. Instead place config directives in httpd.conf

HostNameLookup is Off by default in apache2.conf so I've not changed apache2.conf

BTW the problem is: HOW DISABLE host name lookup in access.log ?
HostNameLookup Off doesn't work.

moronoid
May 8th, 2009, 07:56 AM
HostNameLookup is Off by default in apache2.conf so I've not changed apache2.conf

BTW the problem is: HOW DISABLE host name lookup in access.log ?
HostNameLookup Off doesn't work.

Hi!
I have the same problem and it is very annoying. Have you found the solution you could share?

Thanks

moronoid
May 8th, 2009, 08:12 AM
Wow!

I've figured out how to solve it in a minute after posting a message here.

Amazing forum :)

Thanks!

PS In case anyone else experiences the same behavior, just turn off mod_authz_host module in Apache config.