This is how it is done
https://github.com/apache/knox/blob/master/gateway-service-definitions/src/main/resources/services/hdfsui/3.0.0/rewrite.xml#L23
<rule dir="IN" name="DATANODE/datanode/inbound/master/query2"
pattern="*://*:*/**/hdfs/datanode/?host={host}?{**}">
<rewrite template="{host}/?{**}"/>
</rule>
On Tue, Jul 30, 2024 at 10:45 AM Thomas Mauran <
[email protected]> wrote:
> Hello,
> I am using Apache Knox and am having trouble with some rewrites rules, to
> avoid those is there a way to tell Knox to just redirect the user to the
> service he asked for instead of proxying the requests on the KnoxUI on port
> :8443 ?
>
> I saw that HDFSUI actually does that and redirect me to the Namenode
> instead of proxying the frontend but I didn' t find anything regarding that
> in the rewrite rules
>
> Thanks for your answers
>