From owner-freebsd-questions@FreeBSD.ORG Tue Aug 17 16:49:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD23016A4CE for ; Tue, 17 Aug 2004 16:49:22 +0000 (GMT) Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7899243D39 for ; Tue, 17 Aug 2004 16:49:22 +0000 (GMT) (envelope-from mi+mxmoz@aldan.algebra.com) Received: from 250-217.customer.cloud9.net (195-11.customer.cloud9.net [168.100.195.11])i7HGnKu5071687 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 17 Aug 2004 12:49:21 -0400 (EDT) (envelope-from mi+mxmoz@aldan.algebra.com) Received: from [127.0.0.1] (mteterin@localhost [127.0.0.1]) i7HGnEcN041375; Tue, 17 Aug 2004 12:49:15 -0400 (EDT) (envelope-from mi+mxmoz@aldan.algebra.com) Message-ID: <4122370A.1010102@aldan.algebra.com> Date: Tue, 17 Aug 2004 12:49:14 -0400 From: Mikhail Teterin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.7) Gecko/20040702 X-Accept-Language: uk, en-us, en MIME-Version: 1.0 To: Nathan Kinkade References: <200408170835.45402@aldan> <20040817151725.GA782@gentoo-npk.bmp.ub> In-Reply-To: <20040817151725.GA782@gentoo-npk.bmp.ub> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamd / ClamAV version devel-20040615, clamav-milter version 0.73a on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 cc: questions@FreeBSD.org Subject: Re: web-serving does not update a file's atime? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 16:49:23 -0000 Nathan Kinkade wrote: >On Tue, Aug 17, 2004 at 08:35:45AM -0400, Mikhail Teterin wrote: > > >>Hello! >> >>I tried to use stat(1) to see the last time a file was downloaded >>through Apache. >> >>To my surprise, all three dates displayed by stat are long ago, even >>though the web-server's log is showing downloads from a just a few >>hours back. >> >>The file-system used to be mounted noatime, but I turned that option >>off some time ago. If I read one of those files (with head(1) or >>file(1), for example), the atime is updated. But if Apache serves it >>out -- it is not... There is no caching in Apache either. >> >> >> > >Is this all running on your local machine? If not, is it possible that >there is a proxy server between you and the host running Apache? >Perhaps a transparent proxy? > > There are not other servers and no proxies. The locally running apache logs successful requests for the files, but their atimes are not updated. Just checked -- the file was last downloaded 13 minutes ago, but all of the three time-stamps (according to stat(1)) point to many hours back... Thanks! -mi