Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Track IP address on Apache

Status
Not open for further replies.

haiway1

MIS
Apr 4, 2001
44
US
Is there a log file in Apache that will show me the IP address of clients logging into an application through the web? Apache is running on Linux. Thanks.
 
Yes. But its location will vary depending on your configuration.

Look in httpd.conf for CommonLog and TransferLog configuration directives. Those directories are the filenames to which Apache is logging.

You may have more than one of either of those directives -- Apache's logging directives can appear both in the general server configuration section an inside virtual host configurations.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Your acces log (usually /var/log/httpd/access_log or something like that) will have the IP address of each request.

Look in httpd.conf for something like
"CustomLog /var/log/httpd/access_log combined"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top