简体   繁体   English

IIS网站与应用程序

[英]IIS Web site vs Application

In IIS I can convert a folder in a website into an application... but how to do you make the root website an application? 在IIS中,我可以将网站中的文件夹转换为应用程序......但是如何使根网站成为应用程序?

Right now if I have an application (let's call it foo), the only way I know to get it running in IIS is to create a website (we'll call it bar.com) and then add the application under the website so that I have to access it by navigating to http://bar.com/foo . 现在,如果我有一个应用程序(让我们称之为foo),我知道让它在IIS中运行的唯一方法是创建一个网站(我们称之为bar.com),然后在网站下添加应用程序,以便我必须通过导航到http://bar.com/foo来访问它。 How can I set it up to navigate to the app when simply navigating to bar.com? 如何在导航到bar.com时将其设置为导航到应用程序?

but how to do you make the root website an application? 但是如何让root网站成为一个应用程序呢?

The root website is already an application. 根网站已经是一个应用程序。 So basically when you have a website, this website is mapped to a physical location on the hard disk which is where you should deploy your code. 所以基本上当你有一个网站时,这个网站被映射到硬盘上的一个物理位置,你应该在那里部署你的代码。 Then if the website has a binding with bar.com:80 , your application will be directly accessible on http://bar.com . 然后,如果网站与bar.com:80绑定,您的应用程序将直接在http://bar.com访问。

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

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