httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Panning" <rpann...@hotmail.com>
Subject Re: [users@httpd] Adding Virtual Host to Apache 2
Date Fri, 20 Dec 2002 23:19:15 GMT
You also have to list your main host as a virtual host, (above all other 
virtual hosts in the config). Try that.

Ryan






----Original Message Follows----
From: "J. Greenlees" <jaqui@shaw.ca>
Reply-To: users@httpd.apache.org
To: users@httpd.apache.org
Subject: Re: [users@httpd] Adding Virtual Host to Apache 2
Date: Fri, 20 Dec 2002 09:02:58 -0800



Milhomem, Marcus wrote:
>Hi all,
>     I have a apache server that was running ok, with the out of the box
>configuration  of apache 2, I mean, without virtual hosts. But now, my
>machine will host another domain, so I have to add a virtual host to my
>httpd.conf. So now I have my domain www.aaa.com.br and a virtual host
>www.bbb.com.br. But after I configured my virtual host, dosenīt matter if I
>type www.aaa.com.br or www.bbb.com.br, it always shows the virtual hostīs
>homepage. I inserted the following config on my httpd.conf, what I did
>wrong?
>
>
>
>NameVirtualHost *
>  <VirtualHost 192.168.2.2>
>      DocumentRoot /www/htdocs/bbb
>      ServerName www.bbb.com.br
></VirtualHost>
>


try:
NameVirtualHost *:80

as oded put it that is the recommended if you are not mixing named and ip 
based virtual hosts.


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


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


Mime
View raw message