-
Notifications
You must be signed in to change notification settings - Fork 349
App context/vhosts domains in the upstream config #280
Comments
As of 2.1.0, you can now set the Host: header in your |
Sure, it's partial improvement. But some legacy apps need also context ( |
Probably that means prefixing req.URL.Path = singleJoiningSlash(r.endpoint.Path, req.URL.Path) But I am uncertain what happens to any URL escaping in the paths, since this is manipulating (The code sample I linked also included some query string manipulation (to add query params from the reverse proxy target); that code would probably work here as well; at least it manipulates encoded paths. But I'm not clear on the use case for always adding query params, vs. the one for a path prefix.) Anyway, you can try adding that code to the source and see if it works for you. |
Hm. By the way, it looks like |
indeed the X-Forwarded-Host-value is set wrong. This breaks clients (e.G. my symfony-app) which rely on this value. Hope this could be fixed in the next release. Thanks for this great software! |
@jangaraj thanks for taking your time reporting this. The repository keycloak-proxy was moved to Keycloak organization and renamed to keycloak-gatekeeper. If you still think this issue is valid, please read https://www.keycloak.org/community.html and report your bug/feature request to https://issues.jboss.org/browse/KEYCLOAK. |
As a developer I want to use keycloak-proxy as a standard reverse proxy. That means I want to use app context in the upstream setting, for example: https://domain.com/app-context/ or I want to use it with the domain, where virtual hosts are enabled (
Host
header needs to be part of the upstream request).Will it be possible?
The text was updated successfully, but these errors were encountered: