# Host configuration questions

**URL:** <https://www.ruby-forum.com/t/host-configuration-questions/155888>\
**Category:** Rails\
**Created:** [December 17, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/host-configuration-questions/155888 "2008-12-17T22:34:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonwold](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Post date:** [December 17, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/host-configuration-questions/155888/1 "2008-12-17T22:34:14Z")

</div>

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](http://www.silliemunkie.com)  
ServerAlias [silliemunkie.com](http://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

---

<div class="post-metadata">

**Author:** ![jasonwold](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Post date:** [December 18, 2008, 12:28am UTC](https://www.ruby-forum.com/t/host-configuration-questions/155888/2 "2008-12-18T00:28:31Z")

</div>

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
