是的,你可以这么做。
您将需要:
1.添加一个新的博客应用程序
基本上去门户-> 配置选项卡-> 一直滚动到底部并添加类似这样的内容

2.配置Ghost在子文件夹上运行
将 Ghost 发布到您在上述步骤中映射到应用程序的任何文件夹。您可以使用 FTP、webdeploy或 SCM(https://<YouSiteName>.scm.azurewebsites.net/DebugConsole
这是我选择的,我的文件夹布局如下所示

igonredeployments
文件夹,与此无关
在你的config.js
for Ghost 中,在Production
环境节点下确保你的 url 为
production: {
url: 'http://<YourSiteName>.azurewebsites.net/blog',
mail: {
......
}
}
3.修复主站点的web.config
转到您的主要站点 web.config 并将整个<system.webServer>
元素包装在一个<location path="." inheritInChildApplications="false">
基本上你web.config
应该看起来像这样
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
</handlers>
<rewrite>
<rules>
<!-- Some rewrite rules -->
</rules>
</rewrite>
....
</system.webServer>
</configuration>
现在它应该看起来像这样
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
</handlers>
<rewrite>
<rules>
<!-- Some rewrite rules -->
</rules>
</rewrite>
....
</system.webServer>
</location>
</configuration>
请注意,这是针对您的情况下是 Express.js 的主站点,而不是 Ghost 站点
这应该是你需要做的。