how to view a site in localhost

我的梦境 提交于 2019-12-10 03:05:17

问题


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.


回答1:


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.




回答2:


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...



来源:https://stackoverflow.com/questions/8241006/how-to-view-a-site-in-localhost

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!