[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] $ENV{'REMOTE_HOST'} not working
- Subject: Re: [cobalt-users] $ENV{'REMOTE_HOST'} not working
- From: flash22@xxxxxxx
- Date: Thu Oct 4 16:30:11 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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