Forum: Ruby on Rails Host configuration questions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jason W. (Guest)
on 2008-12-17 23:34
(Received via mailing list)
Hello All,
     I have gotten through installing Ruby, Rails, and Passenger with
all of
your help. I'm configuring the host, and keep getting hung up on the
details. i have edited the /etc/apache2/apache2.conf and added the
following:

LoadModule passenger_module
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/passenger-2.0.3
PassengerRuby /usr/bin/ruby1.8

Do I need to add NameVirtualHost *:80 to the .conf file?

then i created a Virtual Host:

vim /etc/apache2/sites-available/test

and added

ServerName test.rails
DocumentRoot /var/rails/test/public

Updated the /etc/apache2/httpd.conf

NameVirtualHost *:80

<VirtualHost *:80>
  ServerName www.silliemunkie.com
  ServerAlias silliemunkie.com
  DocumentRoot /var/rails/test
  <Directory /var/rails/test>
    Options All
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

and get the following error:

root@li41-22:~# /etc/init.d/apache2 restart
 * Restarting web server apache2
[Wed Dec 17 21:30:46 2008] [warn] NameVirtualHost *:80 has no
VirtualHosts
 ... waiting [Wed Dec 17 21:30:47 2008] [warn] NameVirtualHost *:80 has
no
VirtualHosts

thank you,
Jason
Frederick C. (Guest)
on 2008-12-18 01:28
(Received via mailing list)
On 17 Dec 2008, at 21:33, jason white wrote:

> Do I need to add NameVirtualHost *:80 to the .conf file?
>
>
> then i created a Virtual Host:
>
> vim /etc/apache2/sites-available/test
>
Don't you need to put it in /etc/apache2/sites-enabled/ ?

Fred
This topic is locked and can not be replied to.