Tuesday, March 6, 2012

NameVirtualHost *:80 has no VirtualHosts - ubuntu

comment out this line in

root@l948:/etc/apache2# vim ports.conf
#NameVirtualHost *:80

1 comment:

  1. Hi. I had found the fix you point out some time ago and ya, that did it. Today I upgraded from Ubuntu 11.10 to 12.04 and then added another vhosts (a.k.a. siteEnabled) file. But I already had a file with Name VirtualHost *:80 and several vhosts. Wanted to keep things modular for a new domain so I made the new file. And I just copied the Name VirtualHost *:80 into the top of the new file.
    Well, the error "..no VirtualHosts .." reappear.
    The moral? Only declare once NameVirtualHost *:80

    ReplyDelete