[Bug]nginx配置主应用location到二级路径导致子应用无法加载 #2858
Answered
by
shier-code
shier-code
asked this question in
Q&A
-
部署时nginx通过以下方式配置到服务器根路径访问,遵循entry和publicpath一致,所用应用放在同层级文件夹,可正常访问主应用和子应用
生产环境受到部署限制,服务器根路径已被其他系统占用,各种原因也不允许通过根路径访问本系统,按以下方式配置,主应用能够正常通过二级路径访问,子应用无法加载,在子应用路由下刷新只会重新加载主应用静态资源并304
与 #2273 该问题类似 |
Beta Was this translation helpful? Give feedback.
Answered by
shier-code
Feb 1, 2024
Replies: 1 comment
-
目前该问题已解决,即在注册微应用的activeRule也加上相应前缀,代码示例如下:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shier-code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前该问题已解决,即在注册微应用的activeRule也加上相应前缀,代码示例如下: