Forum: Rails deployment <VirtualHost *:80> block is in config but still says no VirtualHosts

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
29812af4bc466781671373ef3d3a0d10?d=identicon&s=25 Max Y. (max-you)
on 2011-06-04 12:45
So I keep getting the following warning when I try apachectl restart

NameVirtualHost *:80 has no VirtualHosts

But in the config file, I did add the following
Can someone tell me what I did wrong?

NameVirtualHost *:80

<VirtualHost *:80>
  ServerName localhost
  DocumentRoot /home/max/ror/depot/public

  <Directory /home/max/ror/depot/public>
    Order allow, deny
    Allow from all

LoadModule passenger_module
PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.7
PassengerRuby /usr/bin/ruby1.8
This topic is locked and can not be replied to.