Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start Apache avisar NameVirtualHost *: 80 não tem qualquer erro ao iniciar VirtualHosts
When start Apache web server or restart the HTTPD service on web host, the following warning message may appears on console or error log, even though Apache HTTP service can still startup and running fine without error. Ao iniciar o servidor web Apache HTTPD ou reiniciar o serviço de acolhimento na Web, a seguinte advertência mensagem pode aparecer no console ou erro rápida, apesar de Apache HTTP serviço ainda pode iniciar e executar multa sem erros.
[warn] NameVirtualHost *:80 has no VirtualHosts [avisar] NameVirtualHost *: 80 não tem VirtualHosts
where * can be asterisk itself (*), hostname or IP address. * onde pode ser ela própria asterisco (*), host ou endereço IP.
Luckily the message is just a warning message and does not affect the functionality of web server, and hence the websites hosted on the server can still be served properly. Felizmente a mensagem é apenas uma mensagem de aviso e não afeta a funcionalidade do servidor da Web e, consequentemente, os sites hospedados no servidor pode ainda ser servido corretamente. The possible cause for this problem’s symptom is incorrect use of NameVirtualHost. As possíveis causas para este sintoma do problema é incorrecta utilização de NameVirtualHost.
When the server, dedicated or virtual private server web host, has only one IP address, websites are hosted by Apache via name based virtual hosting. Quando o servidor, ou privada virtual dedicado servidor web host, tem apenas um único endereço IP, sites são hospedados em Apache virtual hosting via baseada nome. In this case, there should be only one NameVirtualHost been defined. Neste caso, deverá haver apenas um NameVirtualHost sido definido. For example, Por exemplo,
NameVirtualHost *:80 NameVirtualHost *: 80
<VirtualHost *:80> <VirtualHost *:80>
servername host servername acolhimento
serverPath /public_html/ serverPath / public_html /
DocumentRoot /public_html/ DocumentRoot / public_html /
</VirtualHost> </ VirtualHost>
The name of one or more virtual hosts (websites’ domain name) is defined by “servername” directive. O nome de um ou mais hospedeiros virtuais (websites' nome do domínio) é definida pelo "servername" directiva. So if you have more than one websites hosted on a single IP address, you will have one NameVirtualHost declaration and many VirtualHost sections to configure those domains. Portanto, se você tem mais de um Web site hospedado em um único endereço IP, você terá uma declaração NameVirtualHost e VirtualHost muitas seções para configurar esses domínios.
Beside, try at best to use IPs or * for the NameVirtualHost and <VirtualHost> directives. Ao lado, na melhor das hipóteses para tentar usar IPs ou * para a NameVirtualHost e <VirtualHost> directivas. In some cases, where the website is assigned a dedicated IP address where only one virtual host is declared, the NameVirtualHost can even be dropped. Em alguns casos, onde o site está atribuído um endereço IP dedicado, onde apenas um host virtual é declarada, a NameVirtualHost pode até ser abandonada.
For more example on how VirtualHost supposed to be setup, visit Para saber mais sobre como exemplo VirtualHost suposto ser setup, visite Apache 2.2 documentation Apache 2,2 documentação or ou Apache 1.3 documentation Apache 1,3 documentação (more common version of Apache used currently as most control panel such as cPanel comes with this, although it’s going to be upgraded in cPanel 11). (mais comum versão do Apache utilizado atualmente como a maior parte do painel de controle, tais como cPanel vem com esta, embora, vai ser actualizado em cPanel 11).
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos relacionados
- Request URL /server-status or 404 Page Not Found Apache Error Pedido URL / server-status ou 404 Página não encontrada Apache Error
- cPanel WHM Failed to Receive Status Information From Apache Error cPanel WHM falhou estado a receber informações de erro Apache
- winnt_accept: Asynchronous AcceptEx failed Error in Apache Log winnt_accept: Asynchronous AcceptEx falhou Erro no Apache Log
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4 Instalando Web Server no FreeBSD 6,0 a 2,2 Apache, MySQL e 5,0 PHP 5 - Parte 4
- FreeBSD Apache HTTP Accept Filter Error FreeBSD Apache HTTP aceitar filtro erro
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page Status Apache (whm-server-status), em cPanel WebHost Manager Retorna página em branco
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files Iniciando o Apache HTTPD falhou devido a Não consigo abrir ou no Tais mod_bwlimited, mod_log_bytes ou mod_bandwidth Files
- gmmktime Error in WordPress and MagpieRSS gmmktime Erro em WordPress e MagpieRSS
- Subversion (SVN) Issues and Problems on mod_dav_svn in FreeBSD Subversion (SVN) questões e problemas em mod_dav_svn no FreeBSD
- Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Melhorar o servidor web Apache segurança: Use ServerTokens e ServerSignature para desativar cabeçalho

































August 20th, 2007 19:30 20 de agosto de 2007 19:30
[...] people on the web say stuff like ‘change the *:80 to a _default_:80′ or similar - focusing on tricking [...] [...] As pessoas na Web dizer coisas como 'mudar o *: 80 a um _default_: 80' ou similares - incidindo em enganar [...]
July 10th, 2008 19:05 10 de julho de 2008 19:05
[...] Still, now that I’m running my own VPS, I might as well get it fixed. [...] Ainda assim, agora que estou executando o meu próprio VPS, eu possa obtê-lo tão bem fixo. So here’s it. Portanto, aqui está ele. [...]