ROR deployment on Apache - DocRoot set to /

I am trying to get a ROR app running on a linux box running Apache 1.3
at my hosting comapny, but cannot get it running.

There is a fresh/clean ROR app in the base directory /

.htaccess, dispatch.cgi, dispatch.fcgi and dispatch.rb are all in /

All dispatch files have been set to 755.

ROR docs say to point doc root at /public/ and to put .htaccess,
dispatch.cgi, dispatch.fcgi and dispatch.rb in public, but that does not
seem to be the set up at this hosting company- so I am trying to make
this work.

Tech support says nobody else needs to have doc root pointed at public
and that others have been able to make rails work, so I am trying to
find anyone who know how to make this work using doc root pointed at /
instead of /public/.

When I run the app to get to the ROR start page I get a http 500 error.

Any help much appreciated.

Thanks

Alex
DigitalPodcast.com

Make sure your log and tmp directories are writeable by your webserver.

Michael

I figured out how to get around the hosting companies config to make
/public/ act as docroot

use .htaccess to make doc root the public folder

add RewriteBase /public to htaccess file in directory / This makes the
app think /public/ is the docroot.

Then put the modified .htaccess without the RewriteBase command and
dispatch files in the /public directory.

I then had to a mods to the welcome page routing in route.rb to get it
to work.

Alex wrote:

I am trying to get a ROR app running on a linux box running Apache 1.3
at my hosting comapny, but cannot get it running.

There is a fresh/clean ROR app in the base directory /

.htaccess, dispatch.cgi, dispatch.fcgi and dispatch.rb are all in /

All dispatch files have been set to 755.

ROR docs say to point doc root at /public/ and to put .htaccess,
dispatch.cgi, dispatch.fcgi and dispatch.rb in public, but that does not
seem to be the set up at this hosting company- so I am trying to make
this work.

Tech support says nobody else needs to have doc root pointed at public
and that others have been able to make rails work, so I am trying to
find anyone who know how to make this work using doc root pointed at /
instead of /public/.

When I run the app to get to the ROR start page I get a http 500 error.

Any help much appreciated.

Thanks

Alex
DigitalPodcast.com