Cache

Cache

am 10.11.2003 07:01:46 von pankajk

hi !!

Can someone please tell me how is the cache in the apache webserver
organised . I need to catch all the html pages going through the proxy and
know which IP accessed which page at what time and make a log of it along
with the page contents .

In the current log , all I can see is are some .data and .header file . Do
these cache all the pages that are going through ? If yes .. how do I know
it corresponds to which http link and which IP accessed it ?

Pankaj

Re: Cache

am 10.11.2003 10:37:35 von Ian Holsman

Hi Pankaj.
are you sure you want to look at the internal cache files?
from what you are asking for the access.log is more suitable

http://httpd.apache.org/docs-2.0/mod/mod_log_config.html
or
http://httpd.apache.org/docs-2.0/mod/mod_logio.html
may be of interest.

as for capturing the page contents, I don't know of anything which can
do that directly (without coding it yourself)

On 10/11/2003, at 5:01 PM, Pankaj.Kumar - 00CS1010 wrote:

> hi !!
>
> Can someone please tell me how is the cache in the apache webserver
> organised . I need to catch all the html pages going through the proxy
> and
> know which IP accessed which page at what time and make a log of it
> along
> with the page contents .
>
> In the current log , all I can see is are some .data and .header file
> . Do
> these cache all the pages that are going through ? If yes .. how do I
> know
> it corresponds to which http link and which IP accessed it ?
>
> Pankaj
>
--
Ian Holsman
Director
Network Management Systems
CNET Networks
PH: (61) 3-9857-3742 (Australia)/ 415-344-2608 (USA)

Re: Cache

am 10.11.2003 10:44:02 von pankajk

Thanks Ian .. Do you know if any other software than apache can do that ?
A cache of the actual data files in a human readable form in which I can
tell which IP number accessed it and what what URL it actually corresponds
to ?

Pankaj

Re: Cache

am 10.11.2003 12:01:26 von Graham Leggett

Pankaj.Kumar - 00CS1010 wrote:

> Thanks Ian .. Do you know if any other software than apache can do that ?
> A cache of the actual data files in a human readable form in which I can
> tell which IP number accessed it and what what URL it actually corresponds
> to ?

The URL it corresponds to is the first line of the cache file - grep
will help you there.

To see what IP accessed it, look in the logs. In addition it _may_ also
be cached along with the file, but I'm not 100% sure.

Regards,
Graham
--

Re: Cache

am 10.11.2003 14:39:02 von Bill Stoddard

Graham Leggett wrote:

> Pankaj.Kumar - 00CS1010 wrote:
>
>> Thanks Ian .. Do you know if any other software than apache can do that ?
>> A cache of the actual data files in a human readable form in which I can
>> tell which IP number accessed it and what what URL it actually
>> corresponds
>> to ?
>
>
> The URL it corresponds to is the first line of the cache file - grep
> will help you there.
>
> To see what IP accessed it, look in the logs. In addition it _may_ also
> be cached along with the file, but I'm not 100% sure.

The client IP is not stored in the cache entries.

Bill

Re: Cache

am 10.11.2003 14:41:07 von pankajk

Thanks .. What format is the cache stored in . I cant open the
..data file through the browser .. The .header file has the link I can see
but is the .data file compressed ?? If so how can I decompress it ?

Pankaj