Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start Apache Varoita NameVirtualHost *: 80 Has No VirtualHosts virhe Kun Aloita
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. Kun alkaa Apache-web-palvelimen tai uudelleen HTTPD palvelun Web-isäntänä, seuraava virhesanoma saattaa vaikuttaa konsolilla tai virheloki, vaikka Apache HTTP-palveluun voi vielä käynnistys ja käynnissä hyvin ilman virhettä.
[warn] NameVirtualHost *:80 has no VirtualHosts [varoittaa] NameVirtualHost *: 80 ei VirtualHosts
where * can be asterisk itself (*), hostname or IP address. jossa * voi olla tähti itse (*), isäntänimi tai IP-osoite.
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. Onneksi viesti on vain varoitus ja ei vaikuta toiminnallisuutta Web-palvelin, ja siten verkkosivuja palvelimeen voidaan edelleen tiedoksi asianmukaisesti. The possible cause for this problem's symptom is incorrect use of NameVirtualHost. Mahdollinen syy tähän ongelmaan on oire on virheellinen käyttö 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. Kun palvelin, oma tai Virtual Private Server Web-isäntänä, on vain yksi IP-osoite, sivustot ovat isännöi Apache kautta nimi perustuva webhotelleissa. In this case, there should be only one NameVirtualHost been defined. Tässä tapauksessa ei pitäisi olla vain yksi NameVirtualHost ole määritelty. For example, Esimerkiksi
NameVirtualHost *:80 NameVirtualHost *: 80
<VirtualHost *:80> <VirtualHost *:80>
servername host servername isäntä
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. Nimi yhden tai useamman Virtual Hosts (www-verkkotunnus) määritellään "servername" direktiivi. 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. Joten jos sinulla on useampi kuin yksi verkkosivuja on yksi IP-osoite, sinulla on yksi NameVirtualHost ilmoitus ja monet VirtualHost osien määrittää näitä aloja.
Beside, try at best to use IPs or * for the NameVirtualHost and <VirtualHost> directives. Rinnalla, koetus on parasta käyttää IP tai * ja NameVirtualHost ja <VirtualHost> direktiivejä. 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. Joissakin tapauksissa, jos sivusto on määritetty oma IP-osoite, jossa vain yksi virtuaalinen isäntä on ilmoittanut, NameVirtualHost voi jopa laski.
For more example on how VirtualHost supposed to be setup, visit Lisätietoja esimerkiksi siitä, miten VirtualHost pitäisi olla setup, vierailu Apache 2.2 documentation Apache 2.2 Documentation or tai Apache 1.3 documentation Apache 1.3 Documentation (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). (yleisempi versio Apache käytetään nykyään sillä useimmat ohjauspaneelin kuten cPanel tulee tähän, vaikka se tulee päivittää vuonna cPanel 11).
IMPORTANT : The page is machine translated and provided "as is" without warranty. TÄRKEÄÄ: sivu on koneellisesti käännetty ja tarjotaan "sellaisenaan" ilman takuu. Machine translation may be difficult to understand. Machine translation voi olla vaikea ymmärtää. Please refer to Datalehdeltä original English article alkuperäinen Englanti artikla whenever possible. kun mahdollista.
Related Articles Aiheeseen liittyviä artikkeleita
- Request URL /server-status or 404 Page Not Found Apache Error URL-osoitteen / server-status tai 404 Page Not Found Joutuisasti Erehdys
- cPanel WHM Failed to Receive Status Information From Apache Error cPanel WHM eivät saaneet tilatietojen From Joutuisasti Erehdys
- winnt_accept: Asynchronous AcceptEx failed Error in Apache Log winnt_accept: Asynchronous AcceptEx epäonnistui Virhe Apache Log
- FreeBSD Apache HTTP Accept Filter Error FreeBSD Apache HTTP Accept Filter Virhe
- Fix Internal Server Error When Accessing Easy Apache in cPanel WebHosting Manager Korjaa Internal Server Error Kun pääseminen Easy Apache on cPanel Webhosting Manager
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page Apache Status (WHM-server-status) on cPanel WebHost Emäntä Returns Tyhjä sivu
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 Asentaminen Web-palvelimeen FreeBSD 6.0 avulla Joutuisasti 2.2, MySQL 5.0 ja PHP 5 - Osa 4
- Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Parantaa Apache Web Server Security: Käytä ServerTokens ja ServerSignature poistaminen käytöstä Header
- Fix Hotspot Shield Bandwidth Exceeded, TCP Connect Wait, Auth Failure or Daemon Start Error Fiksoida Huimapää Suojata Kaistanleveys ylitetty, TCP Connect Odota, Auth Epäonnistuminen tai Demoni Alku Erehdys
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files Alkaen Apache HTTPD epäonnistui ei voi avata tai No Tällainen mod_bwlimited, mod_log_bytes tai mod_bandwidth Tiedostot










































June 29th, 2009 10:02 29 kesäkuu 2009 10:02
debian lenny – just make sure there is ONLY one instance of Debian lenny - varmista että on vain yksi esimerkki
NameVirtualHost *:80and you have receivers for it (ie virtual host entries) ja olet vastaanottimet se (eli virtuaalinen isäntämerkinnät)
the definitive place to put NameVirtualHost is in ports.conf lopullinen paikka laittaa NameVirtualHost on ports.conf
May 9th, 2009 23:58 9 toukokuu 2009 23:58
Thanks, very useful for me. Kiitoksia, erittäin hyödyllinen minulle.
April 29th, 2009 12:19 29 huhtikuu 2009 12:19
NameVirtualHost *:80 has no VirtualHosts 443 SSL port not yeap. NameVirtualHost *: 80 ei VirtualHosts 443 SSL-porttia ei Yeap.
March 23rd, 2009 15:57 23 maaliskuu 2009 15:57
the message appear because ports.conf not configure. viesti näyttää, koska ports.conf saa määrittää.
If you configure VirtualHost with ip ex. Jos määrität VirtualHost IP ex.
Then you must configure at ports.conf with same setting. Tämän jälkeen sinun on määritettävä klo ports.conf kanssa samat.
ports.conf ports.conf
NameVirtualHost xxx.xxx.xxx.xxx:80 NameVirtualHost xxx.xxx.xxx.xxx: 80
Listen 80 Kuuntele 80
I also have same problem. Minulla on myös sama ongelma. But after I change this setting, that message dissapear. Mutta sen jälkeen voin vaihtaa tätä asetusta, että viesti katoaa.
Good lUck Onnea
February 24th, 2009 18:18 24 helmikuu 2009 18:18
Thanks. Kiitos.
It was a great help. Se oli paljon apua. You would believe how many different opinions there are on which is the right syntax for VirtualHost in Apache. Uskoisit kuinka paljon erilaisia mielipiteitä on siitä mikä on oikea syntaksi VirtualHost on Apache.
Thanks again. Kiitoksia jälleen.
February 16th, 2009 08:35 16 helmikuu 2009 08:35
Thanks waveclaw . Thanks waveclaw.
January 18th, 2009 15:53 18 tammikuu 2009 15:53
This warning will also be emitted if there are multiple NameVirtualHost entries. Tämä varoitus on myös pääsee, jos on useita NameVirtualHost merkinnät.
In the basic install of Apache 2 on Debian 5 (Lenny) I see the NameVirtualHost in: Perusmäärää asentaa Apache 2 Debian 5 (Lenny) näen NameVirtualHost on:
/etc/apache2/sites-enabled/000-default / etc/apache2/sites-enabled/000-default
and ja
/etc/apache2/ports.conf / etc/apache2/ports.conf
So at least this out-of-the-box install will emit this warning every time '/etc/init.d/apache2 reload' is called to check the configuration files. Joten ainakin tässä out-of-the-box install päästää tämän varoituksen aina "/ etc/init.d/apache2 reload" kutsutaan tarkistaa asetustiedostot.
If the warning bothers you, just comment out the entry in ports.conf and don't add new ones; say, from an example site template pasted into a new configuration file. Jos varoitus häiritsee sinua, vain kommentti, merkintä ports.conf eivätkä lisää uusia, eli siitä Esimerkiksi sivuston mallin liittää uuden asetustiedostoa.
December 23rd, 2008 12:54 23 joulukuu 2008 12:54
NameVirtualHost *:80 has no VirtualHosts NameVirtualHost *: 80 ei VirtualHosts
July 10th, 2008 19:05 10 heinäkuu 2008 19:05
[...] Still, now that I'm running my own VPS, I might as well get it fixed. [...] Kuitenkin, nyt kun olen käynnissä oman VPS, voisin yhtä hyvin get it fixed. So here's it. Joten tässä sitä. [...] [...]
August 20th, 2007 19:30 20 elokuu 2007 19:30
[...] people on the web say stuff like 'change the *:80 to a _default_:80′ or similar – focusing on tricking [...] [...] Ihmiset Web sanoa tavaraa kuten "muuttaa *: 80 _default_: 80" tai vastaava - keskitytään puijata [...]