简体   繁体   English

如何在IIS 7中代替默认网站发布网站?

[英]How to publish website in IIS 7, in place of Default Web Site?

I have created a ASP.NET website and deploy it in IIS 7 (in place of Default Web Site). 我创建了一个ASP.NET网站,并将其部署在IIS 7中(代替“默认网站”)。 When I type localhost in address bar of browser it shows it perfectly. 当我在浏览器的地址栏中键入localhost ,它可以完美显示。 But when I type my Internet IP address, it shows IIS 7 screen, it does not show Default.aspx page. 但是,当我键入Internet IP地址时,它显示IIS 7屏幕,但不显示Default.aspx页。 But when I type IP Address/Default.aspx then it shows ok. 但是当我键入IP Address/Default.aspx它显示确定。

Now I want, when I type my Internet IP address Default.aspx page should open directly. 现在,我想输入互联网IP地址Default.aspx页时,应该直接打开它。

Please help 请帮忙

You need to change your default document so that Default.aspx has the highest priority. 您需要更改默认文档,以使Default.aspx具有最高优先级。

Under Default Web Site, find Default Document , then add "default.aspx" if it isn't there, and use the arrows to move it to the top. 在“默认网站”下,找到“ Default Document ,然后添加“ default.aspx”(如果不存在),然后使用箭头将其移至顶部。

Alternatively you could just remove the iisstart.htm file all together. 或者,您可以只删除iisstart.htm文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM