|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
IIS6.0 Issues with two Domains
I am running Windows 2003 Server with IIS6.0. I have two domains registered and pointed at my server. At one time, everything worked perfect, now for some reason, I am having the following issues I cannot seem to resolve.
My site "A" is operational and can be accessed without issue. I have the folder assigned in IIS and it knows the default page. This all works fine. My site "B" no matter how I configure it, no matter what I assign as the homepage in IIS to, it still reads site "A's" home page and folder. I have tried about everything I can to get site "B" to read from it's own designated folder and default page, but for some reason it is refusing to do so and wants to continue to read from the site "A's" location. How do I make IIS understand that Site A belongs to /site A/default.asp and Site B belongs to /site B/default.asp? I have deleted the entire site from the IIS, reset and reloaded the sites, and everything and for some reason, both sites still read from the same folder. I have set the folder and verified the defrault page path in IIS several times and they are pointed to two different folders and home pages. If I move Site "A"'s folder out of the "Inetpub" area, both sites are unaccessible, if I move site "B"'s folder out of IIS, it does not affect anything. IIS is confused, how can I make it understand? Any ideas? |
|
#2
|
||||
|
||||
|
Have you made sure you've set the correct host header value for the two sites?
|
|
#3
|
|||
|
|||
|
Host Header?
Quote:
Okay, I must have missed that one because I am unsure what a host header is or where I set it at. Setting a host header will seperate the sites? |
|
#4
|
||||
|
||||
|
Well I'm not sure how you can have two different sites without using a host header. If I use either of the two domains, IIS needs to know which site to use for which domain. AFAIK, the only way you can do this is by using a host header value.
So, open up IIS and find the properties for your first website. Make sure that the Web Site tab is selected and click the Advanced button in the "Web site identification" section. In the new window that opens, you'll probably want to change the existing option so that you have "www.domain.com" and port 80. You may also want to create a record for "domain.com" with port 80. Once you've done this, open the same page for the second website and set the host header value to www.domain2.com and domain2.com. |
|
#5
|
|||
|
|||
|
It is always the simplest things - Thank you
Well it worked like a charm. I had tried this but did not realize the specifics so I was giving them the wrong names and it was going to the default. Now it works perfect!
Thank you for your help! |
|
#6
|
||||
|
||||
|
Glad you got it sorted
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > IIS6.0 Issues with two Domains |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|