title: How to configure IIS to run application in browser as "http://localhost/AppName/Default.aspx"
body: <p>I opened the application as a website from my visualstudio 2010 
  So the application had this URL </p>
  
  <pre><code>"http://localhost:9698/AppName/Default.aspx"
  </code></pre>
  
  <p>Later, i added the application as website in IIS 7 and i got this URL </p>
  
  <pre><code>"http://AppName/Default.aspx"
  </code></pre>
  
  <p>Note : I used Appname in my Host file and Appname as Hostname in my IIS 7 settings..</p>
  
  <p>Now, i need the URL to be "http://localhost/AppName/Default.aspx" 
  when it runs from IIS...How can i change it ?</p>
  
  <p>The reason i am doing this is, I need to provide this URL to my Facebook App
  as Canvas URL. And Facebook dosent accepts "http://AppName/Default.aspx" as 
  a valid domain. So i need to change the Apps localhost URL to</p>
  
  <p>"http://localhost/AppName/Default.aspx"</p>
  
  <p>How ?</p>