且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Apache 2上运行Angular-cli

更新时间:2022-12-07 18:49:53

问题出在index.html <base>

the issue is in index.html <base>

请将<base href="/root/beans3/dist/">更改为<base href="/"> 因为您要在配置中将DocumentRoot设置为该路径.

please change <base href="/root/beans3/dist/"> to <base href="/"> since you are setting the DocumentRoot in your config to that path.

或删除-bh <path>并仅使用ng build --prod