Forum Moderators: phranque
-------------------------------------
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{SaneCookie}n\" %<{SaneStop}n %T" sane
---------------------------------------
but only IP adresses are loged into access.log! :-¦
can somebody tell me how to overcome this probleme.
thankyou in advance.
Webmasterly yours.
Abdel.
Welcome to WebmasterWorld!
Are you self-hosting, or are you using a hosting service?
Hosting services often disable this feature because it requires that your server issue a reverse-DNS lookup request for each request received by your server. This slows down the server quite a bit, doubles the server's communication traffic, and adds load to the CPU. For this reason, hosting services often disable it.
If this does not concern you, see HostnameLookups [httpd.apache.org] in Apache core. If you have access to httpd.conf, you can enable this feature.
Jim
If you find you MUST run with Apache performing hostname look-ups, I strongly recommend running a local caching-only nameserver on the box, and adding 127.0.0.1 to your resolv.conf; make sure (for security reasons) that your resolver (generally BIND [isc.org], although there are others) is listening *ONLY* on 127.0.0.1. This will boost performance, since your local nameserver will only have to look up a given IP once every few hours/days, instead of for every request. More information on configuring BIND can be found on Google [google.com] or in the cricket book [oreilly.com].