NameVirtualHost *:80 has no VirtualHosts, even though a <VirtualHost *:80> is there

Discussion in 'Apache' started by myou, Jun 4, 2011.

  1. #1
    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
    </Directory>
    </VirtualHost>

    LoadModule passenger_module
    /var/lib/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
    PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.7
    PassengerRuby /usr/bin/ruby1.8
     
    myou, Jun 4, 2011 IP
  2. stardust.x7

    stardust.x7 Active Member

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    90
    #2
    Easy to solve, just run under SSH :

     
    stardust.x7, Jun 6, 2011 IP