簡體   English   中英

是在使用 IIS 托管在 Azure 中的 express.js 上運行的 node.js 應用程序嗎?

[英]Is a node.js app running on express.js hosted in Azure using IIS?

我正在開發一個托管在 Azure 中的應用程序。 該應用程序是基於 node.js/express.js 的網絡應用程序。 它是否在 IIS 服務器上/在其中運行,因為它托管在 Azure 中?

我的應用程序不使用 iisnode package。 但我想知道它是否固有地在 IIS 上運行,因為它托管在 Azure 中?

另外:據我所知,IIS-express 和 express.js 是兩個完全不同的托管 Web 服務器的環境.....?

根據您的描述,您似乎在談論將基於express.js的節點應用程序托管到Azure WebApp for Windows。

Yes for hosting Node.js app in IIS on Azure WebApp for Windows, you need to use iisnode (a native IIS module) to host node.js applications with the web.config file in IIS on Windows. For more details, you can refer to the wiki page iisnode wiki of GitHub repo Azure/iisnode to know what iisnode is, and to know how to host it with a web.config file in IIS via the other wiki page Using a custom web.config for Node apps GitHub repo projectkudu/kudu Using a custom web.config for Node apps的配置。

However, No for Azure WebApp for Windows, because you also can use IIS as a reverse proxy server to handle a Node app via the default port %HTTP_PLATFORM_PORT% specified by Azure WebApp like the blog Running java jar file to serve web requests on Azure App Service Web Apps為 Java 說。 但一般來說,這不是推薦的方式。

Meanwhile, No for hosting Node app on other Azure services, such as Azure WebApp for Liunx, Azure VM, or Azure Container services, these services based on Linux do not require IIS, so the iisnode module also be not absolute required.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM