Host configuration questions


#1

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

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


#2

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