Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Resource lookup in multiple spaces

0 views
Skip to first unread message

C.Jantzen

unread,
Dec 16, 2009, 5:09:49 AM12/16/09
to
Hi

I wanted to find out if its possible to look for a resource (eg.
a .gif) in more than one place?
First look in folder a, then look for it in folder b.

/Carsten

Swifty

unread,
Dec 16, 2009, 8:04:26 AM12/16/09
to

Just so you don't end up with zero answers, yes, it is possible.

You could use "ErrorDocument 404" to redirect to a CGI script.
That script could check if the URI references /a/*.gif and if so, and if
/b/=.gif exists, it could serve that instead.

Alternatively, you could use filesystem tricks to make the GIF files in
/a/ appear also to be in /b/ but you'd have to remember to maintain this
mechanism. So apache would only look in one place, but it would find the
GIF's that exist in the other directory as well.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

0 new messages