httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Odhiambo Washington <w...@wananchi.com>
Subject [users@httpd] Reverse Proxy and Apache logging problem
Date Tue, 02 Jan 2007 20:12:57 GMT
Hello and Happy New Year!

[I asked this question in squid-users, but I still remain clueless]
 
I have one question which I need some clues about.
 
I am running Squid-2.6 in accelerator mode. The site being accelerated 
is being served by apache which is residing on the same box as Squid.
 
Squid is listening on the public IP of the box while Apache listens on
the loopback interface (127.0.0.1).
 
Now, for the purpose of getting access statitics for the websites being
accelerated
 
Now, when I check the Apache logs, there are no details of the actual
hosts accessing the website:

127.0.0.1 - - [02/Jan/2007:13:08:53 +0300] "POST /searchmyresults.php HTTP/1.0" 302 18844
127.0.0.1 - - [02/Jan/2007:13:08:52 +0300] "GET /kcperesults.php HTTP/1.0" 200 33729
127.0.0.1 - - [02/Jan/2007:13:08:52 +0300] "GET /kcperesults.php?start=21 HTTP/1.0" 200 33789
127.0.0.1 - - [02/Jan/2007:13:08:54 +0300] "GET /kcpe2006res.php?id=1477429&cenno=603030
HTTP/1.0" 200 19026
127.0.0.1 - - [02/Jan/2007:13:08:53 +0300] "GET /kcperesults.php HTTP/1.0" 200 33714
127.0.0.1 - - [02/Jan/2007:13:08:55 +0300] "POST /juan1.php HTTP/1.0" 302 -
127.0.0.1 - - [02/Jan/2007:13:08:55 +0300] "GET /kcpe2006res.php?id=1917448&cenno=401116
HTTP/1.0" 200 19026
127.0.0.1 - - [02/Jan/2007:13:08:55 +0300] "GET /searchmyresults.php HTTP/1.0" 200 18844
127.0.0.1 - - [02/Jan/2007:13:08:56 +0300] "GET /kcpe.php HTTP/1.0" 200 18083
127.0.0.1 - - [02/Jan/2007:13:08:56 +0300] "GET / HTTP/1.0" 200 20460
 
Is there something that I need to put in squid.conf so that it can
"forward" to apache the actual details (IP, name) of the connecting
host for logging?

I'd like to be able generate access stats for the websites using
apache logs.

Thank you in advance..


-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash@wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+

The cost of living is going up, and the chance of living is going
down.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message