You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Eric Wagar <ew...@yahoo.com> on 2003/05/13 03:15:17 UTC
[users@httpd] _default_ namevhost not working (as I expected and understand)
I have a _default_ namevirtualhost contain.
My understanding of the _default_ bucket is that it will catch the IP
generated traffic and send it to a certain place while passing the domain
specified traffic to another place.
Unfortunately, when I type in the IP address, it goes to the first listed
domain virtualhost, as I expected had there not been a _default_ contain.
I ran httpd -S, and the output is:
VirtualHost configuration:
209.25.194.147:80 is a NameVirtualHost
default server www.flyguylive.com
(/usr/local/apache/conf/httpd.conf:988)
port 80 namevhost www.flyguylive.com
(/usr/local/apache/conf/httpd.conf:988)
port 80 namevhost www.flystream.net
(/usr/local/apache/conf/httpd.conf:1021)
port 80 namevhost www.camblast.net
(/usr/local/apache/conf/httpd.conf:1034)
wildcard NameVirtualHosts and _default_ servers:
_default_:80 default (/usr/local/apache/conf/httpd.conf:970)
_default_:9999 www.flyguylive.com
(/usr/local/apache/conf/httpd.conf:979)
Any help is appreciated.
Thanks
eric
---------------------------------------------------------------------
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] _default_ namevhost not working (as I expected and understand)
Posted by Eric Wagar <ew...@yahoo.com>.
Changing the _default_ to the IP of the system worked the way I expected.
Thanks
eric
> > I have a _default_ namevirtualhost contain.
> >
> > My understanding of the _default_ bucket is that it will catch the IP
> > generated traffic and send it to a certain place while passing the
> domain
> > specified traffic to another place.
> >
> > Unfortunately, when I type in the IP address, it goes to the first
> listed
> > domain virtualhost, as I expected had there not been a _default_
> contain.
>
> The _default_ vhost does nothing with name-vhosts. The default name-vhost
> is the first one listed. If you want to do something different for
> requests that don't match any other vhost, simply create a new
> <virtualhost> block, list it first, and give it a ServerName that doesn't
> match any of the others (for example, use the IP address as the
> ServerName).
>
> 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
Re: [users@httpd] _default_ namevhost not working (as I expected
and understand)
Posted by Joshua Slive <jo...@slive.ca>.
On Mon, 12 May 2003, Eric Wagar wrote:
> I have a _default_ namevirtualhost contain.
>
> My understanding of the _default_ bucket is that it will catch the IP
> generated traffic and send it to a certain place while passing the domain
> specified traffic to another place.
>
> Unfortunately, when I type in the IP address, it goes to the first listed
> domain virtualhost, as I expected had there not been a _default_ contain.
The _default_ vhost does nothing with name-vhosts. The default name-vhost
is the first one listed. If you want to do something different for
requests that don't match any other vhost, simply create a new
<virtualhost> block, list it first, and give it a ServerName that doesn't
match any of the others (for example, use the IP address as the
ServerName).
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