Using a 404 ErrorDocument to serve content

2002-05-05 Thread Ken Williams
Hi, I was thinking of writing yet-another-photo-album-server, and I had the idea that I'd write a handler to serve resized versions of JPEGs (very original, I know ;-). The idea is that I'd put a bunch of JPEGs on the server at locations like foo/123.jpg , and then if a request came for foo/

Re: Using a 404 ErrorDocument to serve content

2002-05-06 Thread Randal L. Schwartz
> "Ken" == Ken Williams <[EMAIL PROTECTED]> writes: Ken> I was thinking of writing yet-another-photo-album-server, and I had Ken> the idea that I'd write a handler to serve resized versions of JPEGs Ken> (very original, I know ;-). The idea is that I'd put a bunch of JPEGs Ken> on the server

Re: Using a 404 ErrorDocument to serve content

2002-05-06 Thread Perrin Harkins
Ken Williams wrote: > The idea is that I'd put a bunch of JPEGs on the > server at locations like foo/123.jpg , and then if a request came for > foo/123-medium.jpg , I'd catch that with a 404 ErrorDocument and > generate the resized image using Imager. If I wanted to, I could also > create th

Re: Using a 404 ErrorDocument to serve content

2002-05-06 Thread Matthew Lanier
On Mon, 6 May 2002, Perrin Harkins wrote: > Ken Williams wrote: > > The idea is that I'd put a bunch of JPEGs on the > > server at locations like foo/123.jpg , and then if a request came for > > foo/123-medium.jpg , I'd catch that with a 404 ErrorDocument and > > generate the resized image usi

Re: Using a 404 ErrorDocument to serve content

2002-05-06 Thread Joachim Zobel
At 10:59 06.05.2002 -0700, you wrote: >On Mon, 6 May 2002, Perrin Harkins wrote: > > Incidentally, that's how Vignette StoryServer works. You could also do > > this kind of thing with a transhandler (or mod_rewrite) that checks for > > the existence of a static file and rewrites the URL if it can