OpenIG route to OpenIDM-GUI with condition "request.uri.path"

This topic has 3 replies, 3 voices, and was last updated 5 years, 5 months ago by jochenr.

  • Author
  • #14334
     Fehmi M’Barek

    Dear all,

    I am looking for a solution for following problem.

    I want to achiev, that if I access to one of the following addresses through a Webbrowser:

    1.) “”
    2.) “”
    3.) “”

    I will get the GUI of OpenIDM.
    Unfortunatly I am not able to get a satisfied result. My Configuration looks as follows:

        "heap": {
            "objects": [
                    "name": "myHandler",
                    "type": "ClientHandler"
        "baseURI": "https://1.1.1.X:8443",
        "handler": "myHandler",
        "condition": "${request.uri.path, '^/OpenIDM-x')}"

    I am getting an 404 answer from the desired IDM.

    In the logfiles I can see that the Handler “myHandler” tries to open “https://1.1.1.X:8443/OpenIDM-x”. Why the Handler adds the “path” to it?
    Anyone facing same Problems?

    Thanks in advanced :-)

    • This topic was modified 5 years, 8 months ago by Fehmi M'Barek. Reason: adding Tags
     Joachim Andres


    Not sure what you are trying to achieve. I would think that this behavior is expected as will respect the patch and not re-write it. So you when access with the browser, IG will internally make a request to If that is not what you are expecting, please elaborate on what you are expecting.

    If you want multiple mappings like -> ->

    then you will need separate route configurations as those are separate routes.


     Fehmi M’Barek

    Hi Joachim,

    thx for the reply.
    I am expecting with my configuration above, that all traffic should be proxied through OpenIG. So no redirection or bypass or something else.

    When I call the Endpoint “” through any browser, openig should show me the login page of the OpenIDM.
    I know that I need a separate rout (config file) for each OpenIDM.
    But with my configuration above it is showing me an error page. And this message comes from the IDM and not from OpenIG. And the logfiles showing me that OpenIG is trying proxy “” but it should only proxy “” without the path name.

    Could you follow up my problem?



    Hi Fehmi,

    have a look in the documentation here:

    BaseUriDecorator — override scheme, host, and port of request URI
    Overrides the scheme, host, and port of the existing request URI, rebasing the URI and so making requests relative to a new base URI. Rebasing changes only the scheme, host, and port of the request URI. Rebasing does not affect the path, query string, or fragment.

    Hopefully this answers the question.


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?