locked
UAG not rewriting Response bodies from HTTP to HTTPS RRS feed

  • Question

  • We are exposing a 3rd party web application via UAG. This application (not well designed) emits a full URL including its web server host name as part of the response in some Javascript within the HTML and also in response to AJAX calls. (e.g. http://<<backend server name>>/SomeVdir/StatusUpdate.aspx).   UAG substitutes the backend server name with the UAG public host name for the trunk.   However we are not seeing it change the protocol from http -> https.

    Here is more details on the trunk ...

     

    • The application is published via an HTTPS trunk.
    • Using appwrap to completely replace *all references* to http:\\publicHostName  in *all web responses*  to https isn't really a viable option for us due to various internal organizational reasons.  As a result we are having to use a HTTP sniffer to identify the individual pages that contain responses with http:\\publicHostName and are replacing with https
    • Setting up a trunk redirection from HTTP -> HTTPS works in some cases (HTTP GETS).   It doesn't always work (HTTP POSTS). 

     

    Is there a setting or tweak that we could use to have UAG to change the protocol?   Obviously UAG already (correctly) know where the patterns are as it is able to replace the backend server name in each of these instance.

    Has anybody else run into this?  Could you share your fix?

    Thanks in advance.

    Friday, August 20, 2010 5:20 AM

Answers

  • Using AppWrap, you can perform a manual change to content, if you can tell exactly which instances UAG is missing. You can read about creating a custom AppWrap file here:

    http://technet.microsoft.com/en-us/library/ff607339.aspx

    What's interesting to me is the fact that UAG DOES replace the server name portion, but misses the protocol. It could be because the URL is built dynamically with JavaScript or AJAX, but if the URL is intact (one piece) in the original code that's sent to UAG from the backend server, then this could be a bug in the product. If this is the case, I would recommend you open a support case with Microsoft, and see if it can be resolved. Keep in mind, though, that support for applications that are not listed in the out-of-the-box templates is limited.


    Ben Ari
    Microsoft CSS UAG/IAG Support
    Sammamish, WA
    • Marked as answer by Erez Benari Sunday, August 22, 2010 7:32 AM
    Sunday, August 22, 2010 7:32 AM