已由调度员转发 - 通过代理与调度员作者

时间:2016-05-12 19:00:41

标签: java cq5 aem dispatcher apache-modules

我目前正在尝试将作者调度程序连接到AEM作者实例。因此,我没有进一步说服 server1 与作者,尝试通过浏览器访问它...工作得很好。然后我在 server2 上配置作者调度程序,将其指向 server1 ...尝试在浏览器中访问它。 ..工作得很好我的作者调度员提供页面并完美地缓存它们。

好的,这就解决了这个问题,现在我在 server3 上配置一个作者,该作者位于代理服务器后面并指向 server2上的调度程序 将请求转发至 server3 。因此, server2 上的调度程序作者基本上需要通过代理才能访问 server3 。代理已正确配置为将请求转发到 server3 ,100%左右。这就是我的问题所在,因为看起来调度员无法做到这一点。当我在 server3 上请求页面时,我收到以下日志消息:

[Wed May 11 20:50:42 2016] [D] [26730] Found farm author for server2
[Wed May 11 20:50:42 2016] [D] [26730] checking [/]
[Wed May 11 20:50:42 2016] [D] [26730] request URL has no extension: /
[Wed May 11 20:50:42 2016] [D] [26730] cache-action for [/]: NONE
[Wed May 11 20:50:42 2016] [D] [26730] Connected to backend rend01 (server3)
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: Host
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: Cache-Control
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: Accept
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: Upgrade-Insecure-Requests
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: User-Agent
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: Accept-Encoding
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: Accept-Language
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: Cookie
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: X-Forwarded-Proto
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: X-B3-TraceId
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: X-B3-SpanId
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: X-B3-ParentSpanId
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: X-B3-Flags
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: Via
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: X-Forwarded-For
[Wed May 11 20:50:42 2016] [D] [26730] Adding request header: Server-Agent
[Wed May 11 20:50:42 2016] [I] [26731] Already forwarded by dispatcher (server2), declined.
[Wed May 11 20:50:42 2016] [I] [26731] "GET /" - - 0ms
[Wed May 11 20:50:42 2016] [D] [26730] response.status = 404
[Wed May 11 20:50:42 2016] [D] [26730] response.headers[Date] = "Wed, 11 May 2016 20:50:42 GMT"
[Wed May 11 20:50:42 2016] [D] [26730] response.headers[Content-Type] = "text/html; charset=iso-8859-1"
[Wed May 11 20:50:42 2016] [D] [26730] response.headers[Content-Encoding] = "gzip"
[Wed May 11 20:50:42 2016] [D] [26730] response.headers[Content-Length] = "180"
[Wed May 11 20:50:42 2016] [I] [26730] "GET /" 404 180 5ms

我不知道为什么我无法通过代理人与调度员作者访问我的作者实例。

欢迎任何想法或建议。

感谢。

1 个答案:

答案 0 :(得分:0)

您是否配置了代理标头?

"代理授权" "代理连接"

https://docs.adobe.com/docs/en/dispatcher/disp-config.html

/clientheaders
{
    "referer"
    "user-agent"
    "authorization"
    "from"
    "content-type"
    "content-length"
    "accept-charset"
    "accept-encoding"
    "accept-language"
    "accept"
    "host"
    "if-match"
    "if-none-match"
    "if-range"
    "if-unmodified-since"
    "max-forwards"
    "proxy-authorization"
    "proxy-connection"
    "range"
    "cookie"
    "cq-action"
    "cq-handle"
    "handle"
    "action"
    "cqstats"
    "PATH"
}