Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

virtual websites not working

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
SQL-websites working on/off - I'm running a webserver with MS Win2000 Advanced Server w/ SP4, SQL Server 7.0 and IIS 5.0. Have and installed all available Windows Updates. Both IIS and SQL Server 7.0 are running on the same server. I have tried to install the SP4 for the..

Trying to get my websites working - I am trying to this DNS and web setup I have a belkin g54 wireless router with port setup to go to my server's ip I have 5 static ips from my isp I talked to the tech support people there to help set me up the router has my..

Websites not working - I am trying to host two websites. I have "all for the ip address, no header value for both and port 80 for both. One of them can start, although it does not get on the internet, and the other one tells me I am using the same port 80

Default Websites Not Working... Help!! - I have a 2003 Small Business Server and the default site is working locally, but not across the network. The remote web workplace site isn't working at all but the sites are. At one point they were all working but a user..

Please Help - Newbie - Intranet Websites Not Working - I need help this thing. I've got IIS working. I've got two websites on my server and listed in IIS and running. Each site has a different IP and Header. Each site has the right file listed in default content page. Read
Author Message
Frank

External


Since: Apr 09, 2005
Posts: 4



(Msg. 1) Posted: Sat Apr 09, 2005 12:58 pm
Post subject: virtual websites not working
Archived from groups: microsoft>public>inetserver>iis (more info?)

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
website I typed in the header name domain.com and www.domain.com.
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

 >> Stay informed about: virtual websites not working 
Back to top
Login to vote
James MCSE

External


Since: Apr 09, 2005
Posts: 3



(Msg. 2) Posted: Sat Apr 09, 2005 8:00 pm
Post subject: Re: virtual websites not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The host header allows you to have multiple virtual websites as follows.

You have domainname.com running on a machine with IP of 127.0.0.1 (for
arguments sake only)
If someone types in the IP address 127.0.0.1 or domainname.com they will get
the default website.
If you add a host header like accounting for a site then people typing in
accounting.domainname.com will get this site.

When you say they type the second address are you talking about a second
actual IP address or are you referring to a domain name?

--
James Dornan MCSE
http://www.j-corp.com


"Frank" <frank673 DeleteThis @hotmail.com> wrote in message
news:eNcUGYTPFHA.1096@tk2msftngp13.phx.gbl...
| 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
| website I typed in the header name domain.com and www.domain.com.
| 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
|
|

 >> Stay informed about: virtual websites not working 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 3) Posted: Sun Apr 10, 2005 5:47 am
Post subject: Re: virtual websites not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">www.ilopia.com</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=purple> > 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 
Back to top
Login to vote
Frank

External


Since: Apr 09, 2005
Posts: 4



(Msg. 4) Posted: Mon Apr 11, 2005 8:30 am
Post subject: Re: virtual websites not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 DeleteThis @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=purple> > <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=green>  >> 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 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 5) Posted: Mon Apr 11, 2005 8:30 am
Post subject: Re: virtual websites not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Frank

External


Since: Apr 09, 2005
Posts: 4



(Msg. 6) Posted: Mon Apr 11, 2005 8:34 am
Post subject: Re: virtual websites not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Actually I am refering to completely another domain. I want to host 2
domains on my web server. The first domain domain1.com has its own web site
under IIS. domain2.com also has it own web site and own directory. My
problem is that if I type <a style='text-decoration: underline;' href="http://www.domain1.com" target="_blank">www.domain1.com</a> or <a style='text-decoration: underline;' href="http://www.domain2.com" target="_blank">www.domain2.com</a> in internet
explorer I always get web sites belonging to <a style='text-decoration: underline;' href="http://www.domain1.com." target="_blank">www.domain1.com.</a> Although in
IIS I set the headers for domain2 to domain2.com and <a style='text-decoration: underline;' href="http://www.domain2.com" target="_blank">www.domain2.com</a>

Frank

"James MCSE" <NO-MAIL.jdornan.DeleteThis@j-corp.com> wrote in message
news:%23jwu7iWPFHA.3408@TK2MSFTNGP14.phx.gbl...
 > The host header allows you to have multiple virtual websites as follows.
 >
 > You have domainname.com running on a machine with IP of 127.0.0.1 (for
 > arguments sake only)
 > If someone types in the IP address 127.0.0.1 or domainname.com they will
 > get
 > the default website.
 > If you add a host header like accounting for a site then people typing in
 > accounting.domainname.com will get this site.
 >
 > When you say they type the second address are you talking about a second
 > actual IP address or are you referring to a domain name?
 >
 > --
 > James Dornan MCSE
<font color=purple> > <a style='text-decoration: underline;' href="http://www.j-corp.com</font" target="_blank">http://www.j-corp.com</font</a>>
 >
 >
 > "Frank" <frank673.DeleteThis@hotmail.com> wrote in message
 > news:eNcUGYTPFHA.1096@tk2msftngp13.phx.gbl...
 > | 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=purple> > | 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 
Back to top
Login to vote
Frank

External


Since: Apr 09, 2005
Posts: 4



(Msg. 7) Posted: Mon Apr 11, 2005 12:14 pm
Post subject: Re: virtual websites not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, that is exactly what I was getting. Now thought for unexplained reasons
its working! I didn't change any setting since saturday. So I have no idea
why it was behaving like that. Now I found out that its working when i tried
the host.asp code you sent me. Thanks for your help.

Frank

"Kristofer Gafvert" <kgafvert.DeleteThis@NEWSilopia.com> wrote in message
news:xn0e0vormbpgdmi012@news.microsoft.com...
 > 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
<font color=purple> > <a style='text-decoration: underline;' href="http://www.ilopia.com</font" target="_blank">www.ilopia.com</font</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.DeleteThis@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=brown>   >> > <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 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]