Forum: Ruby RewriteRule with scgi on Apache 2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
021a86a6d77898e538452f822e8dbd24?d=identicon&s=25 unknown (Guest)
on 2006-03-14 22:26
(Received via mailing list)
Hi.
I want to direct all access of "/" to index.html
I tried many things, but it doesn't work.
Like:

RewriteRule ^$ index.html [QSA]
RewriteRule ^/$ /var/www/public/index.html [R]

If I access /index.html, everything works fine.
I don't have scgi-bin or dispatch.scgi on my Linux ES4.
Is that normal?
It will be very helpful if somebody can provide a httpd.conf file and
..htaccess file.
Thank you,
46a8fffa03e75f278c57ac37f11c07e2?d=identicon&s=25 Steve Peters (Guest)
on 2006-03-14 22:44
(Received via mailing list)
On Wed, Mar 15, 2006 at 06:23:46AM +0900, meng.frank@gmail.com wrote:
> Is that normal?
> It will be very helpful if somebody can provide a httpd.conf file and
> ..htaccess file.

You don't need a RewriteRule, you need DirectoryIndex.

DirectoryIndex index.html

Steve Peters
steve@fisharerojo.org
021a86a6d77898e538452f822e8dbd24?d=identicon&s=25 unknown (Guest)
on 2006-03-16 16:44
(Received via mailing list)
Thank you for your message.
I do have DirectoryIndex in httpd.conf.
But after I run RubyOnRails, the configuration stopped working.
I am trying to run RubyOnRails with scgi on RedHat ES4.
This topic is locked and can not be replied to.