Re: web-serving does not update a file's atime?
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. Any ideas? Thanks! -mi 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? Nathan -- PGP Public Key: pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD8527E49 pgpZ4vt5sufpG.pgp Description: PGP signature
Re: web-serving does not update a file's atime?
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: web-serving does not update a file's atime?
Mikhail Teterin [EMAIL PROTECTED] wrote: 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... My guess on this would be that Apache is caching the file and has only actually loaded it from disk once. Try stop/starting Apache and see if it has to reload the file to see if my guess is correct. -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: web-serving does not update a file's atime?
On Tuesday 17 August 2004 07:29 pm, you wrote: = Mikhail Teterin [EMAIL PROTECTED] wrote: = 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... = = My guess on this would be that Apache is caching the file and has only = actually loaded it from disk once. = = Try stop/starting Apache and see if it has to reload the file to see = if my guess is correct. Apache is restarted regularly here by newsyslog... -mi ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: web serving
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Goodleaf, John Sent: Monday, June 14, 2004 11:22 AM To: [EMAIL PROTECTED] Subject: OT: web serving Please reply to [EMAIL PROTECTED] So I have a FreeBSD server at home serving some web pages, mostly web mail (Apache). It's running on a DSL line behind a gateway that forwards port 80 requests to it. Now here's the problem. I need to serve also from an IIS .NET server (it's for my girlfriend; don't bug me). So my question: How do I serve some things from the IIS server and some from the BSD server? Do I set up some kind of proxying? I'm sure there are three hundred solutions, but this is not something I've ever had to learn about. I'm willing to RTFM; I just want to be pointed in the right direction. Thanks, John _ This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, You could probably do something like: Forward port 80 to freebsd apache and set A proxy from there to the IIS at 192.168.1.50 Location /iis/ ProxyPass http://192.168.1.50:80/ ProxyPassReverse http://192.168.1.50:80/ /Location This would work like www.yourserver.com/iis But probably you could put inside a virtualhost too if needed... Here in detail: http://www.zope.org/Members/regebro/Zope_and_Apache Best regards, Andras Kende http://www.kende.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: web serving
Goodleaf, John wrote: Please reply to [EMAIL PROTECTED] So I have a FreeBSD server at home serving some web pages, mostly web mail (Apache). It's running on a DSL line behind a gateway that forwards port 80 requests to it. Now here's the problem. I need to serve also from an IIS .NET server (it's for my girlfriend; don't bug me). So my question: How do I serve some things from the IIS server and some from the BSD server? Do I set up some kind of proxying? I'm sure there are three hundred solutions, but this is not something I've ever had to learn about. I'm willing to RTFM; I just want to be pointed in the right direction. Thanks, John If you need it on the same IP address and port, you can set up a reverse proxy using mod_proxy. I've only ever used it with Apache 2 but I think it works the same on 1.3, if that's what you're using. You basically specify that requests for a particular path will be served by another server. This can be combined with virtual hosts if you want. See the ProxyPass and ProxyPassReverse directives. http://httpd.apache.org/docs-2.0/mod/mod_proxy.html -- Danny ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]