This topic has 2 replies, 2 voices, and was last updated 6 years, 3 months ago by Laurent Vaills.
-
AuthorPosts
-
May 9, 2016 at 8:39 pm #10373
benclade
ParticipantHello,
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!
May 10, 2016 at 12:52 am #10376benclade
ParticipantSolved 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.
May 10, 2016 at 10:10 pm #10415Laurent Vaills
ParticipantHi 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 -
AuthorPosts
You must be logged in to reply to this topic.