Hi,
My understanding of your posts are this:
You have created two websites (after you deleted the default website),
with different roots.
For one of the websites, the host header is empty, and for the other, you
have added <a style='text-decoration: underline;' href="http://www.domain2.com," target="_blank">www.domain2.com,</a> and domain2.com.
Whatever you type (www.domain2.com, domain2.com, <a style='text-decoration: underline;' href="http://www.domain1.com," target="_blank">www.domain1.com,</a>
domain1.com and the IP of the webserver), the website of domain1 is
returned.
Have i understood correctly?
Can you please write this in a text file:
<HTML>
<BODY>
<%=Request.ServerVariables("HTTP_Host")%>
</BODY>
</HTML>
Save the file as "host.asp" in the root of domain1
Now type <a style='text-decoration: underline;' href="http://domain2.com/host.asp" target="_blank">http://domain2.com/host.asp</a> in your browser.
What do you see on the webpage? It should be domain2.com.
I want to make sure that the host header is really sent, and not modified
somewhere on its way to the webserver.
And, the root of the websites is really different?
--
Regards,
Kristofer Gafvert
<a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">www.ilopia.com</a>
Frank wrote:
> Hi,
>
> I have DNS records registered in the server. So If I ping domain1.com or
> <a style='text-decoration: underline;' href="http://www.domain1.com" target="_blank">www.domain1.com</a> It resolves to my server and I can ping the server. The
same
> happens with domain2.com and <a style='text-decoration: underline;' href="http://www.domain2.com." target="_blank">www.domain2.com.</a> the problem is that when I
> type <a style='text-decoration: underline;' href="http://www.domain2.com" target="_blank">www.domain2.com</a> on my web browser it return to me web pages
belonging
> to domain1.
>
> Frank
>
> "Kristofer Gafvert" <kgafvert.TakeThisOut@NEWSilopia.com> wrote in message
> news:xn0e0u6t7a5eg5g00n@news.microsoft.com...
> > Hello,
> >
> > Nothing in your message indicates that you have modified/added an A
record
> > in the DNS server for the second domain. That is necessary. The host
> > header is sent in the HTTP request to the webserver, but to be able to
> > send the request to the webserver, the client must find the webserver.
> >
> > When you use the IP to connect to the webserver, the host header is
either
> > empty, or the IP is used as host header. You need to use the domain
name
> > to reach the second website, and you need to add necessary DNS
information
> > so the client can find the webserver.
> >
> > Hope this helps!
> >
> > --
> > Regards,
> > Kristofer Gafvert
> > <a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<font color=green> > > <a style='text-decoration: underline;' href="http://www.ilopia.com</font" target="_blank">www.ilopia.com</font</a>>
> >
> >
> > Frank wrote:
> >
> >> Hi,
> > >
> >> I have Windows 2000 Adv. Ser. With IIS and Frontpage extensions
> > installed.
> >> In Internet Information Services snap-in I removed the default website
> > and
> >> created a new one for our company. For this website I left the host
> > header
> >> name empty. This way this website would come up if they type in the
IP of
> >> the server. Then I created another website and in the header of the
> > second
<font color=brown> > >> website I typed in the header name domain.com and <a style='text-decoration: underline;' href="http://www.domain.com.</font" target="_blank">www.domain.com.</font</a>>
> >> The server is of a different domain. so I think if someone types the
> > company
> >> web adress he/she should get the default websit where as if someone
types
> >> the second address he/she should get the second virtual website. Its
not
> >> working like that. If I type in the IP addres or any of the two
domains I
> >> always get the default web site. What did I miss to configure? Thanks.
> > >
> >> Frank<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: virtual websites not working