Wouldn't be a solution based on a default rule as suggested by Stephen, where 
the name with out extension is mapped to the adp processor, which checks for a 
default extension before retuning 404, an option for your scenario? 
Yes, absolutely, Stephen’s suggestion will work for me.  

Another approach to solving this my problem would be to register a 404 handler, 
which then checks to see if an.adp version of the request exists and returns 
that instead.  For efficiency, I could modify ns_register_adp that page after 
the first 404 happens.  Basically, it’s stephen’s approach combined with a 404 
handler.

The advantage of this approach is that I don’t have to pre-register all my ADPs 
and also if I create new ADPs the 404 handler automatically notices them.

On my bookmooch.com site (running aolserver) I use a 404 handler to return book 
cover images and file-system-cache the results. The first time a URL such as 
http://bookmooch.com/img/23423423.jpg is called, the file doesn’t exist, so the 
404 handler makes the jpg (by proxying from amazon.com) and returns it, and 
then saves the contents as a file, for fast future delivery.  This sort of hack 
is why I love navisever/aolserver, as doing this sort of thing on any other web 
platform I can think of would be really hard.

So, now I have at least two good solutions to my problem, thank you, and so if 
you don’t want to mess up the source with new options I’d be ok with that. :D

-john



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to