Webmasters Stack Exchange is a question and answer site for pro webmasters. 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

I have a web server running Apache HTTPD 2.2 serving as a reverse proxy for my IIS 7.5 server.
This worked fine, until I wanted to use OpenID (using DotNetOpenAuth). Since DotNetOpenAuth throws an exception if I try using any realm other than the domain. To fix that I want to set the hostname server-sided (either on the reverse proxy or on the IIS server).
I was able to do that when using HTTPD as the back-end but I haven't found the configuration directive for IIS.

share|improve this question
This would be a configuration issue of either Apache or IIS, you might want to consider asking it on Server Fault instead. – Jack M. Mar 30 '11 at 20:51
@Jack true, but the FAQ for Server Fault explicitly says that it is not the correct place for questions about Running servers at home for personal use – Teo Klestrup Röijezon Mar 30 '11 at 22:10

Open IIS7 manager and on the right hand size select Bindings. Here you can set a host header to your site. Don't forget this name must be resolved to the IP address of the machine hosting the web site. You can do that in you DNS server. If you don't have any DNS server you can set the IP address in hosts file in %windir%\System32\drivers\etc.

share|improve this answer

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.