I’m trying to find a solution for how to use TWurl for populating a https site with content from another https site.
I got a task where we’re asked to use the proxySG to replace the content on a webpage with the content from another webpage.
Example: if i go to fragbite.se i want the addressbar to say https://fragbite.se but the proxy should populate the page that is served to the client with content from https://bbc.com.
In tests that i’ve done, i’ve managed to get exactly this to work however, only when the OCS is using HTTP.
In the example below you can see the working TWurl rewrite for HTTP.
define url_rewrite P
rewrite_url_prefix “https://fragbite.se/” “http://192.168.3.201/”
define action portal
define action force_uncompressed
(policy above was found here: https://origin-symwisedownload.symantec.com/resources/webguides/proxysg/certification/rp_webguide/Content/Topics/Tasks/URLRewrite.htm )
So the problem with the above CPL is that if i change http://192.168.3.201 to https://bbc.com then the URL in the addressbar is changed to https://bbc.com which is not what i’m looking for.
Is there anyone who have managed to make a working CPL for TWurl with between two HTTPS webpages?
Forwarding hosts doesn’t work for this either as they are not dynamic and will only display content in ex. www.google.com/ (if the site tells the proxy to get a resource from somewhere else, the proxy doesn’t listen to the server).
Have a wonderful day!