如何在localhost中查看站点 [英] how to view a site in localhost

查看:464
本文介绍了如何在localhost中查看站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在localhost下工作。



在IIS管理器7.5中,Windows Server 2008。



添加后在应用程序池中的新应用程序中,我使用该应用程序池添加了一个新的asp.net Web应用程序站点。



问题是如何在localhost上运行该网站以检查网站是否正常工作?



<人们告诉我,我必须为该网站添加绑定域并使用这些域运行该网站。但是每次在IIS上添加新网站都不方便,我需要有一个域来检查结果吗?



我认为应该可以运行以某种方式在localhost下的网站,但我不知道。



任何想法?



提前致谢。

解决方案

最简单的方法是将虚拟目录添加到IIS中的默认网站。将虚拟目录指向您安装/复制网站的目录。



您可以从IIS浏览或键入虚拟目录名称(以localhost /开头)进入浏览器地址栏。


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.

解决方案

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.

这篇关于如何在localhost中查看站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆