NameVirtualHost não tem efeito

33

O que você acha que seria uma solução para o meu problema?

user@admin:~$ sudo service apache2 restart
sudo: unable to resolve host admin
* Restarting web server apache2                                                
AH00548: NameVirtualHost has no effect and will be removed in the next release
/etc/apache2/ports.conf:8
    
por alex 20.02.2014 / 04:28

1 resposta

44

Na documentação do apache:

Prior to 2.3.11, NameVirtualHost was required to instruct the server that a particular IP address and port combination was usable as a name-based virtual host. In 2.3.11 and later, any time an IP address and port combination is used in multiple virtual hosts, name-based virtual hosting is automatically enabled for that address.

This directive currently has no effect.

A solução para o seu problema é remover a diretiva NameVirtualHost.

    
por 20.02.2014 / 04:33