Hi Vell, I'm rather new to all this myself and have been going through all the 
usual installation woes.

I don't know if you have tried this but you could fire up Webbrick to see if 
the problem is with Apache or Rails. Go to the root of your Rails application 
(/home/lmcilwain/vell/current) and type:
$sudo rails server --port=88

Now you should see your Rails site running on port 88. If you don't, the 
problem is with Rails. Otherwise it is with Apache. The next thing to do would 
be to check Apache log files, they should give much better info on what went 
wrong.

Regards

Binni

-----Oprindelig meddelelse-----
Fra: [email protected] 
[mailto:[email protected]] På vegne af Vell
Sendt: 14. december 2011 16:16
Til: Ruby on Rails: Talk
Emne: [Rails] Re: How can I get RVM/Passenger/Apache2 to play nicely together

Hi Brynjolfur,

Yes I believe I have. Here is what I have as my configs:

/etc/apache2/apache2.conf:

LoadModule passenger_module /home/vmcilwain/.rvm/gems/ruby-1.9.2-p290/
gems/passenger 3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /home/vmcilwain/.rvm/gems/ruby-1.9.2-p290/gems/
passenger-3.0.11
PassengerRuby /home/vmcilwain/.rvm/wrappers/ruby-1.9.2-p290/ruby


/etc/apache2/sites-available/vell:

<VirtualHost *:80>`
    ServerName vell
    DocumentRoot "/home/lmcilwain/vell/current/public"
    ErrorLog "/var/log/apache2/vell-error_log"
    CustomLog "/var/log/apache2/vell-access_log" common <Directory 
"/var/www/sites/vell/current/public">
    Options All
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
RewriteEngine On
# Remove the www
RewriteCond %{HTTP_HOST} ^vell$ [NC]
RewriteRule ^(.*)$ http://vell/$1 [R=301,L] </VirtualHost>


On Dec 14, 3:25 am, Brynjolfur Thorvardsson <[email protected]> wrote:
> Have you told Apache where to find your application?
>
> -----Oprindelig meddelelse-----
> Fra: [email protected]
> [mailto:[email protected]] På vegne af Vell
> Sendt: 14. december 2011 04:53
> Til: Ruby on Rails: Talk
> Emne: [Rails] How can I get RVM/Passenger/Apache2 to play nicely
> together
>
> Hello all,
>
> Can anyone point me to any solid documentation on how to set up a production 
> server using RVM, Passenger, and Apache2?  I have been at this for a week 
> with absolutely no luck at all so I thought I would post here to see if 
> anyone has managed to get this to work and written down the steps they used.
>
> Right now with my current implementation, I am getting a 404 error when I 
> attempt to locally point my browser to a basic rails application.
>
> I am attempting to set this up on an Ubuntu 11.10 system.
>
> Any help would be greatly appreciated.
>
> Thanks in advance.
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

--
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to