Big Newbie - FreeBSD Apache2 & Rails?

Hello:

I need some basic help. I have a server on which I want to run rails.
It's a freeBSD server with a current port of rails and a lot of other
things. I'm a relative unix newbie too so there are some big barriers
to entry here: Here's what I've done

1. gem installed ruby
2. gem installed rails
3. gem installed mongrel

I've also used "mod_ruby" to modify apache's httpd.conf file. I've
also been able to create a first project in rails, but when I go to the
URL of that project, I get a 404 error, instead of the welcome to rails
page. I've got some other thoughts, including running mongrel, but
need some basic guidance to get this working. Once I can actually load
the welcome to rails, I'm good for a while, but that's where I am.

Any help you can offer would be greatly appreciated.

Thanks!

You probably need to make sure your apache server knows where to find
your rails app. You'll probably need to add a config like the one
below. After that, just do a "apachectl graceful" to restart the
server. You may also want to check from the command line of the server
using lynx or ?? to see if maybe you have port 80 blocked on your
firewall.

<VirtualHost *:80>
    ServerName www.mydomain.com
  ServerAdmin webmaster@mydomain.com
    DocumentRoot
/home/myaccount/Sites/www.mydomain.com/MYRAILSAPP/public/
        ErrorLog
/home/myaccount/Sites/www.mydomain.com/MYRAILSAPP/log/error.log
        SetEnv RAILS_ENV production

        <Directory
"/home/myaccount/Sites/www.mydomain.com/MYRAILSAPP/public/">
                Options +ExecCGI +FollowSymLinks
                AddHandler fastcgi-script .fcgi
                AllowOverride all
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>

Regards,
Chris

Miked wrote: