我正在设置一个API Manager 1.10群集,每个组件都在一个单独的VM中,遵循以下指南:https://docs.wso2.com/display/CLUSTER44x/Clustering+API+Manager+1.10.0前面是Azure中的nginx代理。
所有组件都启动正常(作为服务安装),但只有商店“正常运行”。我无法访问发布者节点(&存储节点)中的发布者或网关节点中的碳页面。我在浏览器上遇到了很多重定向错误。
无论如何,我可以调试问题,看看哪里出错了?流量正在打击,但我收到以下错误:
The xxxxxx.co.uk page isn’t working
xxxxx.co.uk redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
要明确:
我不太确定我错过了什么。
从发布商框中访问日志:
[30/Mar/2017:10:47:21 +0000] "GET /publisher/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
[30/Mar/2017:10:47:21 +0000] "GET /publisher/site/pages/login.jag?requestedPage=https://xxxx.co.uk/publisher/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
[30/Mar/2017:10:47:21 +0000] "GET /publisher/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
[30/Mar/2017:10:47:21 +0000] "GET /publisher/site/pages/login.jag?requestedPage=https://xxxx.co.uk/publisher/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
[30/Mar/2017:10:47:21 +0000] "GET /publisher/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
[30/Mar/2017:10:47:21 +0000] "GET /publisher/site/pages/login.jag?requestedPage=https://xxxxx.co.uk/publisher/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
[30/Mar/2017:10:47:21 +0000] "GET /publisher/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
[30/Mar/2017:10:47:21 +0000] "GET /publisher/site/pages/login.jag?requestedPage=https://xxxxx.co.uk/publisher/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
正如你所看到的,它只是一个重定向循环。我已经按照steps here设置了反向代理。
编辑:
所有静态页面都可以正常工作,只有包含登录表单的页面才会进行重定向循环。
答案 0 :(得分:0)
在我的情况下,错误出在site.json的语法中:
/wso2/repository/deployment/server/jaggeryapps/publisher/site/conf/site.json
/wso2/repository/deployment/server/jaggeryapps/store/site/conf/site.json
/wso2/repository/deployment/server/jaggeryapps/admin/site/conf/site.json
我删除了一些逗号。