Developer forum

Forum » Development » Site refuses to switch between 2 different host names

Site refuses to switch between 2 different host names

Dmitrij Jazel
Reply

Hi guys,

Have a website, with 2 languages.

siteA.testsite.no and siteB.testsite.no

in Websites module, made sure that each site has it's own unique hostname.

 

When I am setting Primary domain out of All domain names, than I am getting this:

http://screencast.com/t/DLQR95GwUa4

Any suggestions?


Replies

 
Dmitrij Jazel
Reply

Just wanted to add that I am able to reach 

siteA.testsite.no/Admin and siteB.testsite.no/Admin

Not sure exactly the problem might be :-/

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Did you configure the correct domain? Looks like DW tries to redirect to a domain that doesn't exist. Try browsing to the site in an anonymous session (so caching is not in effect) and then look at the request using Fiddler. Maybe that sheds some light.

Cheers,

Imar

 
Dmitrij Jazel
Reply
This post has been marked as an answer

Hi Imar, well this is weared, I did setup another IIS site for test, and gave it bind a hostname I am using just to see if IIS resolves it correctly.

And yet, I see that it reaches correct distination (just a index.html with some h1 text).

Usually DW resolves hostnames with ease, but this time I used a "copy site" feature, if that helps in any way. Than I assigned a culture to that copy, and a hostname (that I hope somehow resolves).

The issue also is, if I set "local" hostname, than there are no issues at all, but if I use the full URL it suppose to use, than I am still reaching the default website.

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Are you testing this on the server? Some servers can't "see themselves" depending on the network configuration.....

 
Dmitrij Jazel
Reply

Yes, that is on the production server.

Well, if that would be some kind of Networking issue, than I could not have reached that "small test site" with index.html.

If I am reaching correctly some random place with that hostname, and it works as expected, than it's just the way how web-app understands that hostname.

 

But I am reaching it through out the whole network. Only issue is when I am trying to bind that hostname to dw application.

Not sure whether I must register a "host header" I remember in old days, I do have an entry in hosts file. 

 

 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

It's hard to say without knowing more. Maybe you made a type in the domain? Dynamicweb will redirect to the primary domain so make sure that's correct. Again, the error message you posted seems to indicate a DNS issue, not a Dynamicweb issue.

 
Dmitrij Jazel
Reply

Just to tell how we solved this one.

Appearently, solution was to exclude the :PORT number from the URL.

In other words, ensure normal http traffic to server.

Originally we used to use "siteA.website.no:8081" and "siteB.website.no:8081".

So when we removed the port numbers, (Just used normal http port :80) and it worked perfectly :)

 

/Dmitrij

 

You must be logged in to post in the forum