title: change localhost domain when running locally
body: <p>I am using Visual studio as my IDE is developing a .net web application.</p>
  
  <p>I use my local IIS7 web server to run the application.</p>
  
  <p>It runs under the url -> <a href="http://localhost/AppName/" rel="nofollow">http://localhost/AppName/</a></p>
  
  <p>I want the change this to -> <a href="http://localhost.appname.com/AppName/" rel="nofollow">http://localhost.appname.com/AppName/</a></p>
  
  <p>I have added the following host file entry 
  127.0.0.1 localhost.appname.com</p>
  
  <p>This now mean I can access the site via <a href="http://localhost.appname.com/AppName/" rel="nofollow">http://localhost.appname.com/AppName/</a> like I wanted.</p>
  
  <p>I have one issue though, if I run the site via "Start Debugging" (F5), the site runs in the domain <a href="http://localhost/AppName/" rel="nofollow">http://localhost/AppName/</a> . </p>
  
  <p>What changes do I need to make to the web application to get it to start with domain <a href="http://localhost.appname.com/AppName/" rel="nofollow">http://localhost.appname.com/AppName/</a></p>