[undertow-dev] Reverse proxy

Geetha D R geethdr at gmail.com
Wed Mar 29 15:45:24 EDT 2017


Sorry forgot to attach the source file.

On Wed, Mar 29, 2017 at 3:43 PM, Geetha D R <geethdr at gmail.com> wrote:

> Hi Antoine,
>
> Yes I posted the same question in stackoverflow.
>
> Attached my test file. I set my browser proxy to localhost:8080 and try to
> hit this url in the browser 'http://stage-server1:8557/
> testService/sys/refreshConfiguration.jsp
> <http://rana2-stage.hbs.edu:8557/alumniProfileService/sys/configRefresh.jsp>'
> - This goes through either one of the servers - 1,2,3 but Im not able to
> send response from this actual request url (this url sends back plain text
> response) to the browser.
>
> Thank you for your help.
>
> Thanks
> GeethaDR
>
> On Wed, Mar 29, 2017 at 3:19 PM, Antoine Girard <antoine.girard at ymail.com>
> wrote:
>
>> Hi Geetha,
>>
>> I guess you are the author of this stackoverflow post:
>> http://stackoverflow.com/questions/43029785/how-to-make-
>> undertow-work-as-a-reverse-proxy-to-a-bunch-of-internal-applications
>>
>> I already posted a comment with a suggestion, isn't it enough?
>> Also, please add some code so that we can see what you are doing.
>>
>> Cheers,
>> Antoine
>>
>> On Wed, Mar 29, 2017 at 7:55 PM, Geetha D R <geethdr at gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I want to reverse proxy a bunch of different internal applications using
>>> Undertow <http://undertow.io/>.
>>>
>>> For example my applications are:
>>>
>>>    - https://secure.stage.org/application1/index.jsp
>>>    - https://cee.stage.org/application2/default.aspx
>>>
>>> Every request to these applications should go through the proxy server -
>>> The proxy server in turn sets the authentication token on these requests
>>> and fulfils the request, the response is sent back to the client browser
>>> without exposing the authentication token to the client browser i.e., the
>>> single sign on cookie is not sent to the browser
>>>
>>> When I setup my proxy to say localhost:7001 and try to hit any of the
>>> applications for example https://cee.stage.org/application2/default.aspx
>>> <https://cee.stageorg/application2/default.aspx> - this request should
>>> go through proxy server and the proxy is responsible to inject to single
>>> sign on cookie and request the target application - proxy sends back the
>>> response from the target app.
>>>
>>> I am not sure how to implement this in undertow? Can you please provide
>>> your suggestions
>>> --
>>> Thanks
>>> Geetha DR
>>>
>>> _______________________________________________
>>> undertow-dev mailing list
>>> undertow-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/undertow-dev
>>>
>>
>>
>
>
> --
> Thanks
> Geetha DR
>



-- 
Thanks
Geetha DR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20170329/61462947/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.java
Type: application/octet-stream
Size: 5487 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/undertow-dev/attachments/20170329/61462947/attachment-0001.obj 


More information about the undertow-dev mailing list