risdenk commented on a change in pull request #276: KNOX-2258: Add rewrite rule
to fix livy redirect issue
URL: https://github.com/apache/knox/pull/276#discussion_r387073888
##########
File path:
gateway-service-definitions/src/main/resources/services/livy/0.4.0/rewrite.xml
##########
@@ -45,4 +45,8 @@
<rewrite
template="{$frontend[url]}/yarn/nodemanager/node/containerlogs/{**}?{scheme}?host={$hostmap(host)}?{port}"/>
</rule>
+ <rule dir="OUT" name="LIVYSERVER/livy/outbound/headers/ui"
pattern="{scheme}://{host}:{port}/ui/">
Review comment:
Hmm I guess I wasn't completely clear and was talking about only the
`rewrite template` not the pattern here. Can you double check that looking for
`/ui/` as the pattern is correct still? I want to make sure the header we are
looking for matches in all the cases.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services