Gossamer Forum
Home : Products : DBMan : Installation :

Log-File IP

Quote Reply
Log-File IP
What did I do wrong, when the log-files donīt show the IP, like:

admin logged on at 22:02:38 on 20-Feb-1999 from


Thanks for any idea.
Quote Reply
Re: Log-File IP In reply to
REMOTE_ADDR : 192.55.192.10
REMOTE_PORT : 12345T
hatīs what I found. Itīs an Apache.
Do I have to change REMOTE_HOST into REMOTE_ADDR

THanks.
Quote Reply
Re: Log-File IP In reply to
Hi pg

Set the debug mode on and look for

$ENV{'REMOTE_HOST'}

the REMOTE_HOST variable. That is what the logon script uses to put the data in the log file. If it is empty or it doesnīt exist then your server does not know where the user is coming from (this is a global variable set by the server itself). Talk to your ISP.

Cheers
-JO
Quote Reply
Re: Log-File IP In reply to
It's Apache?! Hmm, I was sure Apache would put the IP number in to REMOTE_HOST if it couldn't figure out the domain name. Strange.

In any case, yes, just change REMOTE_HOST to REMOTE_ADDR and you should be fine.

Cheers,

Alex
Quote Reply
Re: Log-File IP In reply to
Yes, it works with REMOTE_ADDR.
Thanks

[This message has been edited by pg (edited March 24, 1999).]
Quote Reply
Re: Log-File IP In reply to
Oops. Big excuse.
REMOTE_ADDR shows the own IP of the Server the db.cgi works on.