Azure AppService Linux 网站上的默认文档(自定义 404)

Default Documents (custom 404) on Azure AppService Linux website

我的设置

问题: 我需要将 404 页面设置为 index.html 以便 Vue 可以接管路由。 目前,如果我深入 link 到 Vue 中的一条路线,我会得到这个: 404 Not Found nginx/1.17.9

Windows AppService 计划支持默认文档,但 Linux 不支持(您不能在给定的 AppServicePlan 上组合 Windows 和 Linux) 静态网站对此有一个 routes.json 方法(我不想使用静态网站,这与“AppService 中的静态网站运行时”不同)

关于 easiest/lightest 处理此问题的想法?

转到 Configuration ->StartupCommandpm2 serve /home/site/wwwroot --no-daemon --spa 在门户上。

更多详情,请参考我在相关post中的回答。