Sorry sent to wrong list before.

Here is my question.

Do we have a Knox rewrite function that we can use in a "rewrite rule" that
uses the host header info from service?

I would like to rewrite the service output.

For example if I have the following rule which as a request into a yarn
name manager web UI has:

<rule dir="OUT" name="NODEUI/logfiles" pattern="/logs/{**}">
    <rewrite template="{$servicehost}/node/logs/{**}"/>
</rule>

Since the dispatcher has access to the Host request header, a $servicehost
function could capture this information so we can rewrite output to to the
correct Yarn namenode manager web host and port.

$servicehost is a variable which has information only valid to the
transaction (request/response).


Regards,
              Jeff Rodriguez

Reply via email to