PDA

View Full Version : Log Files to display URLS not IPs



nikeairjordan
09-26-2003, 05:26 AM
Hi,

How do I make my raw log files display domains rather than IP addresses?

Thanks,




Tom

FZ
09-26-2003, 06:49 AM
You need to edit your httpd.conf file in /etc/httpd/conf/ and look for this line:


HostnameLookups Off

And replace Off with On. Make sure to read that note above this line - it's important. Also, you might want to rename the original you are modifiying (i.e. keep a copy of it as backup). I think once you have made that change you would need to restart (you can use either the Site Manager or type restart at the SSH command prompt).

jalal
09-27-2003, 01:59 PM
To clarify:
You WILL need to restart.
The restart command is:
$ apachectl restart

$apachectl help
will give you other options of interest (maybe)