-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
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);
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels