nginx 401问题背后的JForg Artifactory 7.x
在Nginx中访问nginx 401问题背后的JForg Artifactory 7.x,nginx,artifactory,Nginx,Artifactory,在Nginx中访问http://)时一切正常: server{ # ... location / { # ... proxy_pass http://127.0.0.1:8082; # ... } # ... } 然后访问http://,使用帐户管理员登录,进入Identity And AccessUsers,单击admin。它将重定向到登录页面。因为浏览器控制台中存在401错误: http://<ArtifactoryS
http://)时一切正常:
server{
# ...
location / {
# ...
proxy_pass http://127.0.0.1:8082;
# ...
}
# ...
}
然后访问http://
,使用帐户管理员登录,进入Identity And Access
Users
,单击admin
。它将重定向到登录页面。因为浏览器控制台中存在401错误:
http://<ArtifactoryServerIp>/ui/api/v1/ui/userApiKey/admin?$no_spinner=true
http:///ui/api/v1/ui/userApiKey/admin?$no\u微调器=真
但其他请求都可以,例如:
http://<ArtifactoryServerIp>/ui/api/v1/ui/users/admin
http:///ui/api/v1/ui/users/admin
可能与Artifactory中的某些重写有关。我建议直接从Artifactory生成反向代理配置,或者您可以在建议的Nginx反向代理配置中参考此配置。它与/Artifactory/
代理的端口相同。