lighttpd rewrite config

I've got a site set up where I need lighttpd to look in two directories for a file when a request is made. Some files will be in /images/, some are in /backup/images.

So when somebody makes a request for /images/logo.gif, this should happen
Serve images/logo.gif if it exists, if not
serve backup/images/logo.gif if it exists, if not
give a 404.

I've been wrestling with this for a little while...how can I do this?

 

 

 

 

Top