Skip to content

Requests are not forwarded to subdomains #143

@nurrony

Description

@nurrony

I am getting the log from Charon as follows. As per the log it is rewriting the path correctly. But getting 404.

I found this #123

does Charon support forwarding request to subdomain or am I am doing it wrong?

Forwarding: GET http://localhost:8000/services/api/entities -> 'foo-resources' -> GET https://resources.foo.com/api/entities 404
public CharonConfigurer charonConfigurer() {
  var outgoingServer = requestServerNameRewriter().outgoingServers("https://resources.foo.com");
  var pathRewriter = regexRequestPathRewriter().paths("/services/(?<path>.*)", "/<path>");
  var pathMapper = requestMapping("foo-resources").pathRegex("/services/(?<path>.*)");
  return charonConfiguration().add(pathMapper).set(pathRewriter).set(outgoingServer);
}

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