Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start Apache Perspėti NameVirtualHost *: 80 Turi Nr VirtualHosts Klaida Pradžia
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. Kada pradėti Apache web serverį arba perkrauti HTTPD paslauga web host, toks įspėjimas gali ant pulto arba žurnalą klaidų, nors Apache HTTP paslauga gali dar paleidimo ir veikia puikiai, be klaidų.
[warn] NameVirtualHost *:80 has no VirtualHosts [perspėti] NameVirtualHost *: 80 neturi VirtualHosts
where * can be asterisk itself (*), hostname or IP address. * kur galima žvaigždute save (*), vardą ar IP adresą.
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. Laimei žinutė yra tik įspėjimą ir neturi įtakos interneto serverio funkcijų, todėl tinklapis Patalpinta serveryje dar gali būti įteiktas tinkamai. The possible cause for this problem's symptom is incorrect use of NameVirtualHost. Įmanoma sukelti šios problemos yra simptomas yra neteisingas naudojimas 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. Jeigu serveris, skirtas arba virtualaus privataus serverio web host, turi tik vieną IP adresą, tinklalapių Hosted by Apache per pavadinimas pagal virtualaus hostingo. In this case, there should be only one NameVirtualHost been defined. Šiuo atveju turėtų būti tik vienas NameVirtualHost nebuvo nustatyta. For example, Pavyzdžiui
NameVirtualHost *:80 NameVirtualHost *: 80
<VirtualHost *:80> <VirtualHost *:80>
servername host ServerioVardas priimančiosios
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. Viena arba daugiau virtualiųjų kompiuterių pavadinimą (tinklapis "domeno vardą) yra apibrėžiama taip:" servername "direktyvos. 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. Taigi, jei turite daugiau nei vieną tinklapis Patalpinta vieną IP adresą, jums reikės vienos NameVirtualHost deklaraciją ir daugelis virtualusis skyriuose sukonfigūruoti šie domenai.
Beside, try at best to use IPs or * for the NameVirtualHost and <VirtualHost> directives. Greta, pabandyti bent geriausia naudoti IP arba * už NameVirtualHost ir <VirtualHost> direktyvas. 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. Kai kuriais atvejais, kai tinklalapyje yra priskirta specialios IP adresas, kai tik vienas virtualaus serverio yra deklaruojami, NameVirtualHost netgi gali būti atsisakyta.
For more example on how VirtualHost supposed to be setup, visit Norėdami sužinoti daugiau, pavyzdžiui, kaip virtualusis turėtų būti nustatymus, apsilankykite Apache 2.2 documentation Apache 2,2 dokumentacija or arba Apache 1.3 documentation Apache 1,3 dokumentacija (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). (daugiau bendrų versija Apache naudojamas šiuo metu, nes dauguma Control Panel pvz cPanel ateina su šiuo, nors ji bus patobulinta Cpanel 11).
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- Request URL /server-status or 404 Page Not Found Apache Error Prašymas URL / serverio statuso arba 404 Page Not Found Apache klaida
- cPanel WHM Failed to Receive Status Information From Apache Error Cpanel WHM Nepavyko gauti informaciją apie "Apache klaida
- winnt_accept: Asynchronous AcceptEx failed Error in Apache Log winnt_accept: Asynchronous AcceptEx Klaida Apache Log
- FreeBSD Apache HTTP Accept Filter Error FreeBSD, Apache HTTP accept filtro klaida
- Fix Internal Server Error When Accessing Easy Apache in cPanel WebHosting Manager Fix Internal Server Error kreipties Easy Apache Cpanel Webhosting vadybininkas
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page Apache statusas (WHM-server-status) Cpanel Serverio vadybininkas grąžinimai Blank Page
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 4 dalis
- Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Gerinti Apache Web Server Security: Naudokite ServerTokens ir ServerSignature Disable antraštė
- Fix Hotspot Shield Bandwidth Exceeded, TCP Connect Wait, Auth Failure or Daemon Start Error Fix Hotspot Shield bandwidth exceeded, TCP Connect Palaukite, Auth neįvykdymas arba Daemon Pradėti Klaida
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files Starting Apache HTTPD nepavyko, todėl negali atidaryti, arba nėra tokios mod_bwlimited, mod_log_bytes arba mod_bandwidth Failai










































June 29th, 2009 10:02 29 birželis 2009 10:02
debian lenny – just make sure there is ONLY one instance of Debian Lenny - tiesiog įsitikinkite, kad yra tik vienas egzempliorius
NameVirtualHost *:80and you have receivers for it (ie virtual host entries) ir turite imtuvai jį (ty virtualaus serverio entries)
the definitive place to put NameVirtualHost is in ports.conf galutinį vietą įdėti NameVirtualHost yra ports.conf
May 9th, 2009 23:58 9 gegužė 2009 23:58
Thanks, very useful for me. Ačiū, labai naudinga man.
April 29th, 2009 12:19 29 balandis 2009 12:19
NameVirtualHost *:80 has no VirtualHosts 443 SSL port not yeap. NameVirtualHost *: 80 neturi VirtualHosts 443 SSL uoste ne yeap.
March 23rd, 2009 15:57 Kovas 23, 2009 15:57
the message appear because ports.conf not configure. pranešimas rodomas, nes ports.conf negalima konfigūruoti.
If you configure VirtualHost with ip ex. Jei turite sukonfigūruoti virtualusis IP ex.
Then you must configure at ports.conf with same setting. Tada reikia sukonfigūruoti bent ports.conf su paties nustatymas.
ports.conf ports.conf
NameVirtualHost xxx.xxx.xxx.xxx:80 NameVirtualHost xxx.xxx.xxx.xxx: 80
Listen 80 Audi 80
I also have same problem. Aš taip pat turiu tą pačią problemą. But after I change this setting, that message dissapear. Bet kai aš pakeisti šį parametrą, kad pranešimas išnyks.
Good lUck Sėkmės
February 24th, 2009 18:18 24 vasaris 2009 18:18
Thanks. Ačiū.
It was a great help. Tai buvo labai padėti. You would believe how many different opinions there are on which is the right syntax for VirtualHost in Apache. Galima būtų manyti, kiek skirtingų nuomonių esama, dėl kurių yra teisė sintaksė virtualus Apache.
Thanks again. Thanks again.
February 16th, 2009 08:35 16 vasaris 2009 08:35
Thanks waveclaw . Ačiū waveclaw.
January 18th, 2009 15:53 18 sausis 2009 15:53
This warning will also be emitted if there are multiple NameVirtualHost entries. Šis įspėjimas taip pat bus išmesti, jei yra keli NameVirtualHost įrašų.
In the basic install of Apache 2 on Debian 5 (Lenny) I see the NameVirtualHost in: Pagrindiniame įdiegti Apache 2 Debian 5 (Lenny) matau NameVirtualHost į:
/etc/apache2/sites-enabled/000-default / etc/apache2/sites-enabled/000-default
and ir
/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. Taigi bent jau šį out-of-the-box įrengti bus išmesti šį perspėjimą kiekvieną kartą, kai "/ etc/init.d/apache2 Perkrauti" yra vadinamas patikrinti konfigūracijos failus.
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. Jei įspėjimo trukdo jums, tiesiog komentaras iš visų ports.conf įrašas, o ne pridėti naujus, ty nuo pvz šabloną įdėti į naują konfigūracijos failą.
December 23rd, 2008 12:54 23 gruodis 2008 12:54
NameVirtualHost *:80 has no VirtualHosts NameVirtualHost *: 80 neturi VirtualHosts
July 10th, 2008 19:05 10 liepa 2008 19:05
[...] Still, now that I'm running my own VPS, I might as well get it fixed. [...] Vis dėlto, dabar, kad aš rodyti savo VPS, aš taip pat get it fixed. So here's it. Taigi čia viskas. [...] [...]
August 20th, 2007 19:30 20 rugpjūtis 2007 19:30
[...] people on the web say stuff like 'change the *:80 to a _default_:80′ or similar – focusing on tricking [...] [...] Žmonių Web pasakyti dalykų, kaip "keisti *: nuo 80 iki _default_: 80" ar panašią - sutelkiant dėmesį į apgaulės [...]