提问人:johnny 提问时间:10/17/2023 最后编辑:johnny 更新时间:10/17/2023 访问量:11
使 apache 2 服务器在所有端点上显示加载页面,直到外部服务准备好接受连接
Make apache 2 server show loading page on all endpoints until an external service is ready to accept connection
问:
我有一个使用 apache2 托管的前端项目。此项目利用托管在端口 3000 的 localhost 上的 api。问题是外部服务需要大约 10 - 15 分钟才能启动。所以我想只显示,直到localhost:3000准备好接受连接。** 注意:我希望所有端点都显示加载页面,因为所有页面都需要 API。解决这个问题的最佳方法是什么?loading.html
我尝试使用代理页面进行设置,如果该端点没有响应,则显示加载页面。但这会等待请求超时,并且仅绑定到代理传递中提到的单个终结点。
答: 暂无答案
评论