You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Cohen <su...@gej-it.com> on 2003/06/01 00:17:24 UTC

RE: [users@httpd] VirtualHost problems with Apache2 (redhat9)

By Defualt, Apache on mandrake comes with the _default_:80 and
_default_:443.
If tou want to use the Vhosts functionality in it, you must remove the
default or change it to name based Vhost.

One more thing, I saw that you have both  servername and serveralias which
are the same, this config is not suggested.

All the best,
Jeff Cohen
 
Iam moving my web server from 1.3 (redhat 7.x) to Apache/2.0.40 (Red Hat
Linux) (redhat 9.0) but now I cant get VirtualHost to work.
 
Starting httpd: [Sat May 31 13:32:09 2003] [error] VirtualHost _default_:443
-- mixing * ports and non-* ports with a NameVirtualHost address is not
supported, proceeding with undefined results
 
 
-----------------------------------------------
Cut and paste from my config
 
 
NameVirtualHost *
 
<VirtualHost *>
 ServerName blablabla.com
 ServerAlias blablabla.com
 DocumentRoot /var/www/html/
</VirtualHost>
 
 
What is wrong.. I compared my old config with the new for 2.0 and alot
changes I noticed.. But I cant see what iam missing..
 


---------------------------------------------------------------------
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] VirtualHost problems with Apache2 (redhat9)

Posted by Rich Bowen <rb...@rcbowen.com>.
On Sun, 1 Jun 2003, H?kan Franzen wrote:

> When I did this the error message was gone:
> Iam not 100% if it works yet cos I havent tested it live
> Can someone tell if its going to work or not?
>
> Listen 80
>
> NameVirtualHost *:80
>
> <VirtualHost *>
>  ServerName balbalabla.com
>  DocumentRoot /var/www/html/balbalbal/
> </VirtualHost>
>
> (Soo all I did was adding :80 after the NameVirtualHost *)

Usually, you need the argument to NameVirtualHost to match, exactly,
the argument to VirtualHost. So, in your example, you should use
<VirtualHost *:80>

What you have there should work, but since it is missing the context of
the rest of the file, that is qualified by saying that there may be
conflicts with other stuff.

I'd recommend that you look at the Apache Vhosts examples document,
which contains examples of the most common virtual host configurations,
and follow one of the examples in there as close to verbatim as you can
get. That document may be found at:

http://httpd.apache.org/docs/vhosts/examples.html

or, for Apache 2.0,

http://httpd.apache.org/docs-2.0/vhosts/examples.html

-- 
Oh I have slipped the surly bonds of earth
And danced the sky on laughter-silvered wings
 --High Flight (John Gillespie Magee)

---------------------------------------------------------------------
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] VirtualHost problems with Apache2 (redhat9)

Posted by H?kan Franzen <fa...@fableserver.dyndsl.com>.
Iam not really sure what you trying to tell me with:

>you must remove the default or change it to name based Vhost

I thougth NameBased VHost was when Iam using: NameVirtualHost *

And how do I "remove the default" and where? httpd.conf ?


When I did this the error message was gone:
Iam not 100% if it works yet cos I havent tested it live
Can someone tell if its going to work or not?

Listen 80

NameVirtualHost *:80

<VirtualHost *>
 ServerName balbalabla.com
 DocumentRoot /var/www/html/balbalbal/
</VirtualHost>

(Soo all I did was adding :80 after the NameVirtualHost *)




> By Defualt, Apache on mandrake comes with the _default_:80 and
> _default_:443.
> If tou want to use the Vhosts functionality in it, you must remove the
> default or change it to name based Vhost.
>
> One more thing, I saw that you have both  servername and serveralias which
> are the same, this config is not suggested.
>
> All the best,
> Jeff Cohen
>
> Iam moving my web server from 1.3 (redhat 7.x) to Apache/2.0.40 (Red Hat
> Linux) (redhat 9.0) but now I cant get VirtualHost to work.
>
> Starting httpd: [Sat May 31 13:32:09 2003] [error] VirtualHost
_default_:443
> -- mixing * ports and non-* ports with a NameVirtualHost address is not
> supported, proceeding with undefined results
>
>
> -----------------------------------------------
> Cut and paste from my config
>
>
> NameVirtualHost *
>
> <VirtualHost *>
> ServerName blablabla.com
> ServerAlias blablabla.com
> DocumentRoot /var/www/html/
> </VirtualHost>
>
>
> What is wrong.. I compared my old config with the new for 2.0 and alot
> changes I noticed.. But I cant see what iam missing..


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