【问题标题】:Liferay portal with "This webpage has a redirect loop"带有“此网页有重定向循环”的 Liferay 门户
【发布时间】:2012-06-07 10:23:06
【问题描述】:

我的门户 http://fut5.co 配置了 Liferay 6.1。但是,从 Web 浏览器查看时会出现问题。我第一次访问该站点时一切正常,但是当我再次尝试访问时,会出现下一条消息:

“此网页有重定向循环”

要重现这个问题,每次我都必须清除浏览器的缓存。这会影响我的访问者在返回我的网站时。

第一次:fut5.co -> fut5.co/home 第二次:fut5.co -> 重定向循环

我将友好的 url 配置为:/portal 公共页面:fut5.co 私人页面:fut5

如何解决此问题?你怎么看?

【问题讨论】:

  • 你指的是哪个浏览器?
  • 我发现 Chrome-19、FF-12 和 IE-9 正在发生这种情况。
  • 是的,这发生在 Chrome 19、Firefox 10、Opera 11.64、Explorer 9 和 Safare 5.1.7 中

标签: browser liferay friendly-url redirect-loop


【解决方案1】:

我经常遇到这个问题,Liferay 被损坏了。我发现唯一的解决方案是完全重新安装 Liferay 实例。我希望我的应用程序进入生产环境后不会发生这种情况。

【讨论】:

    【解决方案2】:

    尝试将“控制面板 > 门户设置 > 导航”上的“主页 URL”属性设置为“/”。

    【讨论】:

      【解决方案3】:

      当您将网站的友好 URL 从“访客”更改为其他内容时,我已经看到了这种情况。如果您重命名为“某物”,解决此问题的一种方法是转到 http://localhost:8080/web/something 而不是 http://localhost:8080/ - 然后重定向循环将不会发生。可能已经为此提交了一个问题(编辑:LPS-27051,已在 6.1 GA2 中修复)。最快的解决方法是不重命名默认站点。

      【讨论】:

      • 我把它放回客人,重定向循环消失了。
      【解决方案4】:

      您能否在 portal-ext.properties 中检查此属性?现在,当您点击直接 url 时,它默认为 /web/guest,因此它正在重定向。

      #
      # Specify the site name that will default to the company's virtual host.
      # If the specified site has a virtual host, then that will take precedence.
      # If it does not, then it will use the company's virtual host. This property
      # is useful to remove "/web/guest" (or any other site) from the default URL.
      # For example, if this property is not set, then the default URL may be
      # http://localhost:8080/web/guest/home. If this property is set, then the
      # default URL may be http://localhost:8080/home.
      #
      virtual.hosts.default.site.name=Guest
      

      【讨论】:

        猜你喜欢
        • 2012-09-22
        • 2015-04-09
        • 1970-01-01
        • 2014-10-19
        • 2014-09-22
        • 1970-01-01
        • 1970-01-01
        • 2013-01-03
        相关资源
        最近更新 更多