我正在尝试在实验室环境中探索风景服务器,一切都按预期工作。我在实验室环境中使用自签名证书。
在我的暂存环境中,我正在为HTTPS使用letencrypt证书。
我在横向添加了2台主机,并且两者均显示在仪表板上,并且所有选项卡均按预期工作,但通知选项卡除外,通知选项卡显示任何系统都要求重启或软件包升级等。
我在appserver.log
中遇到错误
Aug 19 12:46:15 appserver-1 ERR https://abc.xyz.com/account/standalone/alert/13/resolve#012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line 129, in publish#012 obj = request.traverse(obj)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/browser.py", line 540, in traverse#012 ob = super(BrowserRequest, self).traverse(obj)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/http.py", line 457, in traverse#012 ob = super(HTTPRequest, self).traverse(obj)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/base.py", line 260, in traverse#012 obj = publication.traverseName(self, obj, entry_name)#012 File "/usr/lib/python2.7/dist-packages/zope/app/publication/zopepublication.py", line 198, in traverseName#012 ob2 = adapter.publishTraverse(request, nm)#012 File "/opt/canonical/landscape/canonical/routes/publisher.py", line 158, in publishTraverse#012 request.response.redirect(location, trusted=trusted)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/browser.py", line 759, in redirect#012 return super(BrowserResponse, self).redirect(location, status, trusted)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/http.py", line 886, in redirect#012 % target_host)#012ValueError: Untrusted redirect to host '1.2.3.4:443' not allowed.
如果我使用IP
而不是domain name i.e abc.xyx.com
访问风景仪表板,那么它可以正常工作。
因此,它存在重定向问题,但无法解决。 为了安全起见,我已经更改了域名和IP。
请帮助我。
答案 0 :(得分:0)
此问题已解决。请按照以下步骤操作:
1. Go to Organisatios->Settings
2. In Root URL provide your domain name. Earlier i have my IP now its replaced with domain name and everything is working fine
谢谢。