如何在本地主机中查看站点
我在本地主机下工作。
在 IIS 管理器 7.5、Windows Server 2008 中。
在“应用程序池”中添加新应用程序后,我使用该应用程序池添加了一个新的 ASP.NET Web 应用程序站点。
问题是如何在本地主机上运行该网站来检查该网站是否正常工作?
人们告诉我,我必须为该网站添加绑定“域”并使用这些域运行该网站。但这不太方便,因为每次在 IIS 上添加新站点时,我都需要有一个域来检查结果?
我认为应该可以在本地主机下运行该网站,但我不知道。
有什么想法吗?
提前致谢。
I am working under localhost.
In IIS Manager 7.5, windows server 2008.
After adding a new application in "Application pools", I added a new asp.net web application site using that application pool.
The problem is how can I run that website on localhost to check whether the site is working correctly or not?
People told me that I have to add bindings "domains" for that site and run the site using those domains. But that is not convenient as every time adding a new site on IIS, I need to have a domain to check the result?
I think it should be possible to run the site under localhost somehow but I dont know.
Any ideas?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果问题出在“域名”上,则不必购买域名。通过在本地主机上分配不同的端口号,您可以添加新的绑定。
据我所知,添加绑定对于 IIS 理解应该打开哪个站点至关重要。
例如,您可以分配端口号,例如
80 -默认 - , 81,82 ... 8090...
If the problems is with "domains" yo do not have to buy domains. By asigning different port numbers on localhost you can add new bindings.
As I know adding binding is essential for IIS to understand which site should be opened.
For example you can assign port numbers like
80 -default- , 81,82 ... 8090...
最简单的方法是将虚拟目录添加到 IIS 中的默认网站。将该虚拟目录指向您安装/复制网站的目录。
您可以从 IIS 进行浏览,也可以在浏览器地址栏中键入虚拟目录名称(前面带有 localhost/)。
The simplest way is to add a virtual directory to your default web site within IIS. Point that virtual directory to the directory to which you installed/copied your website.
The you can either browse from IIS or type the virtual directory name (preceeded by localhost/) into your browser address bar.