View Full Version : warnig with restart httpd
leen
10th April 2006, 10:55
I get this warnibg while restarting httpd.
Starting httpd: [Mon Apr 10 07:38:05 2006] [warn] NameVirtualHost 0.0.0.0:80 has no VirtualHosts
What does this mean?
22hosting
10th April 2006, 12:34
Basically it looks like your httpd is trying to bind to 0.0.0.0 which means it's binding to ANY live ip address on your system (most probably your main one). And you have no virtual hosts set up in the httpd.conf file. Which is why it's telling you it has noVirtualHosts.
You need to add one. locate httpd.conf and edit it using your favourite editor. There is a virtual hosts section (although personally I recommend segregating vhosts into a seperate vhost.conf file . After that if you take a browse to the apache website you can find documentation on how to add a virtual host in correctly.
________
Banti4u live (http://camslivesexy.com/cam/Banti4u)
leen
10th April 2006, 14:50
I have found the file vhost.conf.master
It has no values like ipadres and so.
Should this be the file to configure, or should the httpd.conf file be pointing to this one?
22hosting
10th April 2006, 15:29
The ip bind address is specified (along with the port address) are in the httpd.conf file.
You can put virtual host information into the httpd.conf file but I recommend building your own vhost.conf file and putting "#include vhost.conf" into the bottom of the httpd.conf .
To read up more about how to set up virtualhosts see : http://httpd.apache.org/docs/2.2/vhosts/
Your vhost.conf should look something like :
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
DocumentRoot /www/domain
</VirtualHost>
<VirtualHost *:80>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>
________
Avandia Lawsuit Info (http://www.classactionsettlements.org/lawsuit/avandia/)
leen
10th April 2006, 18:14
Oh yes, that is the same as one should put in the httpd.conf.
I have used that before.
But can you tell me what is the benefit of using a serate file like vhost.conf.
falko
10th April 2006, 18:22
But can you tell me what is the benefit of using a serate file like vhost.conf.
If you use separate files, the configuration is more clearly laid out and easier to maintain. If you use one big file you have to wade through it every time you want to make changes.
leen
11th April 2006, 13:53
Yes, offcourse
I didn't realise that I won't have a lot of virtual hosts now but in the future I might have.
Therefore I might just as well get usud to it right away.
Thaks
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.