[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

RewriteRule with scgi on Apache 2

meng.frank

3/14/2006 9:22:00 PM

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,

2 Answers

Steve Peters

3/14/2006 9:43:00 PM

0

On Wed, Mar 15, 2006 at 06:23:46AM +0900, meng.frank@gmail.com wrote:
> 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.

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

DirectoryIndex index.html

Steve Peters
steve@fisharerojo.org

meng.frank

3/16/2006 3:43:00 PM

0

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.