AEM - Dispatcher 4.1.9虚荣网址功能不拉发布商虚荣网址包(VanityURLS-Components),列表

时间:2015-10-05 22:03:22

标签: adobe aem publisher requestdispatcher vanity-url

我目前有一个使用AEM 6.0的客户端。由于他们有一些冗长的URL,他们一直在寻找一种解决方案来缩短它们,而无需编辑虚拟主机文件并向虚拟主机添加重定向(他们没有相应的知识来做到这一点)。我找到的唯一解决方案是使用虚荣网址,根据AEM 6.0和Dispatcher 4.1.9支持我的研究。

目前他们有一个调度程序版本4.1.10,我已经阅读了AEM文档https://docs.adobe.com/docs/en/dispatcher/disp-config.html#par_title_21,该文档描述了如何配置Dispatcher和Publisher以启用对虚荣URL的访问。

到目前为止:

我在发布商上安装了VanityURLS-Components包。

我已将以下配置添加到Dispatcher上的dispatcher.any:

/vanity_urls {
     /url "/libs/granite/dispatcher/content/vanityUrls.html"
     /file "/tmp/vanity_urls"
     /delay 300
}

并检查路径是否正确。

我创建了 / tmp / vanity_urls 文件,其中包含apache:apache(这是在Centos上)和777的权限。

我已经重新启动了apache。

尽管有这些步骤,但由于 / tmp / vanity_urls 未被更新,我似乎忽略了一些事情。也许有一些我不理解的东西,但我认为调度员每隔x秒(此处为300) / tmp / vanity_urls 通过发布者 / libs / granite / dispatcher更新/content/vanityUrls.html 。然后使用 / tmp / vanity_urls 作为允许的虚荣网址的白名单。

  1. 我想知道为什么这不起作用,有什么想法吗?
  2. 这可能是 / tmp / vanity_urls 的权限问题吗?
  3. 也许有一些我错误的假设?
  4. 是否存在现有的错误我不知道这个调度员虚荣网址的影响?
  5. 欢迎任何帮助......

    最佳,

    尼古拉

    更新

    在我的日志中找到以下内容:

    [Thu Oct 08 16:11:03 2015] [D] [1780(140151407138784)] Vanity URL file (/tmp/vanity_urls) too old (1443478601 < 1444345863) on startup, fetching...
    [Thu Oct 08 16:11:03 2015] [D] [1780(140151407138784)] Creating new socket: 127.0.0.1:8080
    [Thu Oct 08 16:11:03 2015] [W] [1780(140151407138784)] Unable to connect to 127.0.0.1:8080: Connection refused
    [Thu Oct 08 16:11:03 2015] [D] [1780(140151407138784)] incomplete request, no socket reuse
    [Thu Oct 08 16:11:03 2015] [E] [1780(140151407138784)] Unable to fetch vanity URLs on farm website: no backend available.
    [Thu Oct 08 16:11:03 2015] [D] [1780(140151407138784)] Loaded 0 vanity URLs from file /tmp/vanity_urls
    

    鉴于我的发布商不在localhost端口8080 ...

    ,这是相当自我解释的

    希望能解决我的问题很快就会更新。

    谢谢,

    尼古拉

1 个答案:

答案 0 :(得分:1)

我发现这是一个与AEM无关的网络问题, 我的出版商无法访问/libs/granite/dispatcher/content/vanityUrls.htm。

相关问题