Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

quick question really.

I have a domain name - say and this is assigned to PORT 80 on IIS, the default port. On port 80, I have a front end brochure site, and an MVC web application. These two were worked on by two separate people however now have been integrated into a single project.

And while I can access the front end through the domain name, as soon as I try to login to the web application, it defaults to the IP address for the URL. I can still access the login screen & other areas of the web app using the domain name, but only if I type it in myself.

Does anyone know how I can work around this?


share|improve this question
up vote 3 down vote accepted

If the initial request is routed and returned fine by the domain name, this sounds like something inside your app itself that is redirecting the user to the IP. It is not likely that the dns or iis server config would be causing this, more likely the actual code of the site or perhaps special headers it is returning are redirecting the browser.

share|improve this answer
Thanks for the reply @Caleb. Had figured out that there was no host name set for the site settings in IIS. – 109221793 Nov 16 '10 at 13:14
Huh. In that case my answer was only partially right. The host name shouldn't matter if the web app links/references things relativly, but if your app requests the server host name and then uses that to build absolute links/redirects you could run into this. So it was the app redirecting you, but the app was talking upstream to IIS and not getting information because the config there was incomplete. Glad you got it fixed. – Caleb Nov 16 '10 at 13:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.