如我现在的通过http://localhost/WebApp/index.aspx访问主页,要变成www.Webapp.com/index.aspx访问,在IIS里该怎样设置,请高手指点.

解决方案 »

  1.   

    IIS 好象不用设。系统中的一个文件:\windows\system32\drivers\etc\hosts,用记事本加入一些和域名相关的IP指向。比如:127.0.0.1 smartyouth.net, 127.0.0.1 jasper.smartyouth.net, 127.0.0.1 admin.smartyouth.net。保存之后,我们访问如上网址,就会被定为到本机,就相当于你访问localhost一样。 
      

  2.   

    IIS 默认网站属性网站IP地址 -- 高级在这绑定一下域名
      

  3.   

    或者改一下windows\system32\drivers\etc\hosts 的DNS
      

  4.   

    http://publish.it168.com/2005/0926/20050926058401.shtml?positioncode=2132
    你看看这个
      

  5.   

    加上各位说的再更改网站的主目录就可以达到我想要的目的,感谢greatqn跟dengenming,结贴了