Forum: Ruby on Rails Rewriting URLs

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D60633c62dca6a7f2d602e1380654ea6?d=identicon&s=25 dafydd (Guest)
on 2007-01-02 18:49
(Received via mailing list)
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?

This topic is locked and can not be replied to.