Rewriting URLs

Hi folks

I hope I'm not pushing my luck with all the newbie questions here, but I've busted my brain trying to find the answer to this one on my own. The people on this list have been very generous with me so far and I'm hoping to avoid the being bitten with large teeth, as rluv suggested might happen.

In the public directory of my app I have a dir called sites, which in turn contains a few sub-websites, each in its own directory. I'm trying to get Rails to let me access those sites by URL ie "localhost:3000/sites/dafydd/" (also without the final slash), doing the standard search for index.html/.htm/.php and default.htm.

So far I've tried editing the lighttpd.conf file, adding index-file.names = ( "index.php", "index.html", "index.htm", "default.htm" ), and also editing the url.rewrite line, but the best I can do is to point to only one of the index page options.

Any thoughts on where I can look for a solution?

cheers dafydd