You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by tom sgouros <to...@as220.org> on 2002/01/29 17:14:20 UTC

Re: Content negotiation based on date?

>> From: Lars Rander [mailto:maillist@rander.dk]

>> Let's say that I've got a dir named foo, containing three files
>> named bar,
>> followed by a date in the form YYYYMMDD and then the extension. That is:
>> 
>> /foo/bar.20020126.html
>> /foo/bar.20020127.html
>> /foo/bar.20020128.html
>> 
>> If I then request just /foo/bar, I would like Apache to serve the
>> document
>> with the newest date, in this case /foo/bar.20020128.html - only problem
>> is, it just serves the first document it encounters in the directory,
>> /foo/bar.20020126.html.

> - Modify your content creation system so that this sort of thing isn't
> necessary.  For example, make sure that the most recent file has a different
> base name (or has a symlink from a different base name).

If you could make it DDMMYYYY, it would already be working.

---------------------------------
tomss@ids.net        401-861-2831
http://as220.org/~tomfool

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org