Skip to content

Regex Request Path Rewriter #142

@justinbleach

Description

@justinbleach

Hi. Just need some clarification. Having a hard time understanding the path - template relationship.

Let's say all requests to /kibana go to http://10.6.12.20:5601

When that site loads it pulls in some javascript files etc to load the Kibana site. How can I make all subsequent requests on /kibana to go straight to http://10.6.12.20:5601 .
E.g. /kibana/plugins & /kibana/ui/favicons go to http://10.6.12.20:5601/plugins & http://10.6.12.20:5601/ui/favicons

I tried something like:
.add(requestMapping("kibana")
.pathRegex("/kibana.")
.set(regexRequestPathRewriter().paths("/(?.
)", "/"))
.set(requestServerNameRewriter().outgoingServers(http://10.6.12.20:5601 )));

But I'm getting a double path /kibana//kibana

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions