Simple proxy misunderstanding

This topic has 2 replies, 2 voices, and was last updated 6 years, 3 months ago by Laurent Vaills.

  • Author
    Posts
  • #10373
     benclade
    Participant

    Hello,

    I’ve been working through many OpenIG features and functionality and seem to be missing something on how the proxy is actually working. I’ve done a fresh install of openig on jetty to keep things super simple.

    First config is a super simple proxy to a single app (www.test1.com), basic config.json and 99-default.json as shown in 4.0 gateway guide. Changed my browser /etc/hosts file for http://www.test1.com to point to openig. This works as expected.

    Second config is another app (www.test2.com). No openig config changes, just modified my browser systems /etc/hosts to point to same openig ip as configured for http://www.test1.com. For a request to http://www.test2.com, I am expecting openig to lookup http://www.test2.com and route those requests to the new app, but it is not. All requests to http://www.test2.com are simply routed to the first configured app http://www.test1.com.

    It’s clear I must be missing something, can anyone enlighten me?

    Thanks!

    #10376
     benclade
    Participant

    Solved my issue. Did not completely understand how the baseURI in config.json was functioning. Removing a baseURI value allowed both sites to proxy as expected.

    #10415
     Laurent Vaills
    Participant

    Hi Benclade,

    That’s good that you have a successful experience with OpenIG.

    If you encounter any other problems, do not hesitate to post another message.

    Regards,
    Laurent

Viewing 3 posts - 1 through 3 (of 3 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?