NameVirtualHost *:80 must have a matching VirtualHost <VirtualHost *:80> ... It works fine to put the ip address in the NameVirtualHost directive and the FQDN in the <VirtualHost> directive.