#1  
Old 10th April 2006, 09:55
leen leen is offline
Member
 
Join Date: Mar 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default warnig with restart httpd

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?
Reply With Quote
Sponsored Links
  #2  
Old 10th April 2006, 11:34
22hosting 22hosting is offline
Junior Member
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default

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

Last edited by 22hosting; 22nd August 2011 at 13:03.
Reply With Quote
  #3  
Old 10th April 2006, 13:50
leen leen is offline
Member
 
Join Date: Mar 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #4  
Old 10th April 2006, 14:29
22hosting 22hosting is offline
Junior Member
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default

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 :
Quote:
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

Last edited by 22hosting; 22nd August 2011 at 13:03.
Reply With Quote
  #5  
Old 10th April 2006, 17:14
leen leen is offline
Member
 
Join Date: Mar 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #6  
Old 10th April 2006, 17:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by leen
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 11th April 2006, 12:53
leen leen is offline
Member
 
Join Date: Mar 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
normal HTTPD wont start traxxdata Installation/Configuration 4 1st February 2008 17:23
ISP Services wouldn't restart any service, possibly Domain Host configuration issue. Kamran Shah Installation/Configuration 20 17th August 2006 17:33
can't start httpd after upgrade to 2.2.0 sushestvo Installation/Configuration 1 29th March 2006 18:55
httpd fails at boot time EL7oot Installation/Configuration 3 23rd March 2006 17:43
WARNING in ispconfig.log httpd -t m1744 General 3 13th October 2005 15:17


All times are GMT +2. The time now is 18:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.