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-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org
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:> 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 received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---