[lug:16277] NameVirtualHost *:80 has no VirtualHosts

120 views
Skip to first unread message

Velocity

unread,
May 12, 2010, 3:21:57 AM5/12/10
to Linux Users Group
NameVirtualHost *:80 has no VirtualHosts
I have 5 websites running in a reverse proxy environment.
On main server
I am getting this error
Code:

NameVirtualHost *:80 has no VirtualHosts
[Wed May 12 12:18:10 2010] [warn] NameVirtualHost *:80 has no
VirtualHosts
[Wed May 12 12:18:10 2010] [warn] NameVirtualHost *:80 has no
VirtualHosts
[Wed May 12 12:18:10 2010] [warn] NameVirtualHost *:80 has no
VirtualHosts
[Wed May 12 12:18:10 2010] [warn] NameVirtualHost *:80 has no
VirtualHosts

Where as there is a ServerName directive in all vhosts.On internal
webservers also this problem is coming.
To check if vhost is having any problem I typed httpd -S and it said
command not found.What should I check ?
Where as in /etc/hosts on main site I have named all the internal
servers on which sites
have been forwarded.

--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to linuxus...@googlegroups.com
To unsubscribe, send email to linuxusersgro...@googlegroups.com
For more options, visit our group at http://groups.google.com/group/linuxusersgroup

hard wyrd

unread,
May 12, 2010, 3:25:19 AM5/12/10
to linuxus...@googlegroups.com
Try to set to <VirtualHost *:80> for the virtual host setting like so

NameVirtualHost *:80

<VirtualHost *:80>
      :
      further parameters here
      ;
      ;
</VirtualHost>
--
-------------------------------------------------------------
"Penguin, penguin, and more penguin !"

www.madforubuntu.com
baudizm.blogsome.com

Velocity

unread,
May 12, 2010, 3:37:26 AM5/12/10
to Linux Users Group
Yes this thing exists.

On May 12, 12:25 pm, hard wyrd <hardw...@gmail.com> wrote:
> Try to set to <VirtualHost *:80> for the virtual host setting like so
>
> NameVirtualHost *:80
>
> <VirtualHost *:80>
>       :
>

Chris Miller

unread,
May 12, 2010, 5:00:31 AM5/12/10
to linuxus...@googlegroups.com
I had the same problem. It happens because there are multiple
NameVirtualHost directives. Find them all, delete them, then add it
in apache2.conf. The issue should go away.

(though obviously back up the config file before you do - having an
easy rollback would be nice, don't you think?)
--
Registered Linux Addict #431495
For Faith and Family! | John 3:16!
http://www.fsdev.net/

hard wyrd

unread,
May 12, 2010, 5:42:23 AM5/12/10
to linuxus...@googlegroups.com
Commenting them would also work, just in case :).
--
-------------------------------------------------------------
"Penguin, penguin, and more penguin !"

www.madforubuntu.com
baudizm.blogsome.com

Matej Drobnic

unread,
May 12, 2010, 5:47:33 AM5/12/10
to linuxus...@googlegroups.com
or define a wild card vhost  <virualhost *:80></virualhost> in your apache conf, maybe even add some directives inside, like point to the directory you want or add a path to the error log..
Reply all
Reply to author
Forward
0 new messages