[users@httpd] mod_negotiation and wrong Last-Modified

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I use Apache 1.3.33 (Gentoo) under Linux 2.6 together with mod_lisp
2.42. mod_lisp is a simple handler which communicates with running
Lisp images.


This is what I've found today:
When setting "Last-Modified" (the handler correctly calls
ap_parseHTTPdate(), ap_update_mtime(), and ap_set_last_modified())
the resulting response header has an other date in the
"Last-Modified" field. It is the mtime of the DocumentRoot. But only
if the mtime of DocumentRoot is _newer_ than the date you want to
set.

There's no "Last-Modified" in the response header when you don't set
it yourself.

ap_update_mtime() only updates r->mtime when the supplied time is
_newer_. So I've guessed that some other handler sets r->mtime to
the DocumentRoot.

I've found mod_negotiation. After removing it from the server config
the response header had the correct "Last-Modified" date.

2 possible workarounds:
1.) touch the DocumentRoot to an older date
2.) remove mod_negotiation


Regards,
Stefan

-- 
Web: http://www.no-spoon.de/ -*- IRC: stesch @ freenode


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux