[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] $ENV{'REMOTE_HOST'} not working



On Thu, 4 Oct 2001, Rusty Wilson wrote:

> I have been using the following line on a non-raq
> server to record the visitor's host name to a log file
> (this is part of a perl script that writes information
> to a log file).
> 
>    print OUT "$ENV{'REMOTE_HOST'}\t";
> 
> When I use this line on my RaQ4i, it does not work.

Because by default apache is configured to not reverse IP addresses into
hostnames, this slows the server down considerably....

If you can , log the IP and look up the hostname later (REMOTE_ADDR)

If you MUST use this, see here: 
http://httpd.apache.org/docs/mod/core.html#hostnamelookups

Be aware this will affect how the server logs things also....

ps: Your other machine running apache 1.2? on used to be the default ;)

gsh