You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tobias Herp <ma...@tobias-herp.de> on 2004/09/15 17:16:05 UTC

[users@httpd] Re: NameVirtualHost ... has no VirtualHosts

Joshua Slive schrieb:

>On Wed, 15 Sep 2004 10:36:31 +0200, Tobias Herp <ma...@tobias-herp.de> wrote:
>  
>
>>When I restart the server, I get the message:
>>Starting httpd2 (prefork) [Wed Sep 15 01:17:44 2004] [warn]
>>NameVirtualHost 62.75.158.127:80 has no VirtualHosts
>>
>>The output of "/usr/sbin/httpd2-prefork -S" is:
>>[Wed Sep 15 00:46:00 2004] [warn] NameVirtualHost 62.75.158.127:80 has
>>no VirtualHosts
>>VirtualHost configuration:
>>62.75.158.127:80 is a NameVirtualHost
>>    
>>
>
>It looks like you have two NameVirtualHost addresses with the same
>IP/Port.  This is not allowed (and makes no sense).
>  
>
Does it? Well, the httpd.conf contains one such statements only, but a 
lot of Includes. I couldn't find other .conf files containing 
NameVirtualHost (maybe because I'm not very familiar with the find 
command; I tried >> find /etc/apache2 -name "*.conf" -regex 
"VirtualHost" <<  (also -iregex) but didn't find anything useful. Is 
there a simple way to get the Includes expanded to let me search the 
output? But, the syntax check is successful...

>>Whenever I try to access any page on a subdomain of my server
>>(regardless whether or not it is configured), I get the same error page:
>>snip>
>>Forbidden
>>    
>>
>
>And what does the apache error log say?
>  
>
I found something that might point into the right direction:
[Wed Sep 15 09:27:15 2004] [error] [client 66.249.64.146] attempt to 
make remote request from mod_rewrite without proxy enabled: 
proxy:http://localhost:8080/VirtualHostBase/http/htmlarea.demo.tobias-herp.de:80/htmlAreaDemo/VirtualHostRoot/error/noindex.html

(this is new; when I looked a few days ago, I had a problem due to a bug 
of 2.0.49 fixed in 2.0.50)

I added "proxy" to APACHE_MODULES in /etc/sysconfig/apache2 and 
restarted apache, but this didn't help; the [warn] message is still 
there, and it doesn't work; new error_log entries:

[Wed Sep 15 17:10:57 2004] [warn] proxy: No protocol handler was valid 
for the URL /. If you are using a DSO version of mod_proxy, make sure 
the proxy submodules are included in the configuration using LoadModule.
[Wed Sep 15 17:10:57 2004] [warn] proxy: No protocol handler was valid 
for the URL /error/noindex.html. If you are using a DSO version of 
mod_proxy, make sure the proxy submodules are included in the 
configuration using LoadModule.

Something still missing?

Thanks,

Tobias



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: NameVirtualHost ... has no VirtualHosts

Posted by Tobias Herp <ma...@tobias-herp.de>.
Joshua Slive schrieb:

>On Wed, 15 Sep 2004 17:16:05 +0200, Tobias Herp <ma...@tobias-herp.de> wrote:
>  
>
>>>It looks like you have two NameVirtualHost addresses with the same
>>>IP/Port.  This is not allowed (and makes no sense).
>>>      
>>>
>The syntax check doesn't check the vhost config.  That is what the -S
>flag is for.
>  
>
Well, I meant "/usr/sbin/httpd2-prefork -S". This doesn't detect the 
double NameVirtualHost, either (I wrote an expand script meanwhile and 
found it that way. It was contained in a confixx_vhost.conf).

>You need to also load mod_proxy_http.
>  
>
Ok, for the records, here are my changes so far:
- removed any *:80 from my VirtualHosts (causing segfaults in Apache 2.0.49)
- added the modules proxy and proxy_http to "APACHE_MODULES" in 
/etc/sysconfig/apache2
- removed the double NameVirtualHost in confixx_vhost.conf
- restarted apache

Everything seems to work fine now -- thanks a lot!

Tobias


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: NameVirtualHost ... has no VirtualHosts

Posted by Joshua Slive <js...@gmail.com>.
On Wed, 15 Sep 2004 17:16:05 +0200, Tobias Herp <ma...@tobias-herp.de> wrote:
> >It looks like you have two NameVirtualHost addresses with the same
> >IP/Port.  This is not allowed (and makes no sense).
> >
> >
> Does it? Well, the httpd.conf contains one such statements only, but a
> lot of Includes. I couldn't find other .conf files containing
> NameVirtualHost (maybe because I'm not very familiar with the find
> command; I tried >> find /etc/apache2 -name "*.conf" -regex
> "VirtualHost" <<  (also -iregex) but didn't find anything useful. Is
> there a simple way to get the Includes expanded to let me search the
> output? But, the syntax check is successful...

The syntax check doesn't check the vhost config.  That is what the -S
flag is for.



> [Wed Sep 15 17:10:57 2004] [warn] proxy: No protocol handler was valid
> for the URL /. If you are using a DSO version of mod_proxy, make sure
> the proxy submodules are included in the configuration using LoadModule.
> [Wed Sep 15 17:10:57 2004] [warn] proxy: No protocol handler was valid
> for the URL /error/noindex.html. If you are using a DSO version of
> mod_proxy, make sure the proxy submodules are included in the
> configuration using LoadModule.

You need to also load mod_proxy_http.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org