[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
> Reply-to: cobalt-users@xxxxxxxxxxxxxxx
> 
> 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
> 

THANKS! Now I understand. And thanks for the
workaround suggestion too (REMOTE_ADDR). The "other"
server was a Sun E250 (leased from an ISP) running
iPlanet 4.1.

Thanks also for the "heads up" about how other parts
of apache (i assume logging for one) will be affected
if I turn on IP lookups. Thats very useful to know.

Rusty

__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1