我在Angular8 / Universal上的webiste在我的专用服务器上的pm2上在Apache / nodejs / expres上运行良好。我刚刚使用Universal将应用程序更新为Angular 9。该应用程序在localhost:4000上运行良好,但在子域或根目录下部署到我的Web服务器上时也很好。引发503错误。这对我的程序员来说是一个障碍。
我有一个类似的问题,并在本文的帮助下得以解决:
https://www.purcellyoon.com/insights/articles/angular-universal-server-side-rendering-ssr-with-cpanel-whm