Forum Discussion

CGI's avatar
CGI
Icon for Altostratus rankAltostratus
Mar 03, 2013

Changing requests from http to https

Hi iam having a problem with a web application, after we have changed the site address from http to https, it would seem that the application

 

uses a lot of http requests for Javascript files and for external content fonts and map data. Would it be possible with a irule to catch all the http requests

 

and change them to https ?

 

 

Regards Craig

 

4 Replies

  • can we just create another http virtual server and redirect to https?

     

     

    sol7125: Configuring a virtual server to automatically redirect HTTP requests to HTTPS (9.4.x or later)

     

    http://support.f5.com/kb/en-us/solutions/public/7000/100/sol7125.html
  • CGI's avatar
    CGI
    Icon for Altostratus rankAltostratus

    Hi nitass iave allready done the redirect to https, the only problem is that chrome is blocking the content because of calls in the application that are

     

    bieng made in http to external content and i would like to avoid waiting for the developers to fix there application by catching all http requests and modifying to https.

     

    I might add that the http requests i would like to change seem to be outbound to download external content.

     

    The main outbound url for http seems to be :- http://serverapi.arcgisonline.com/

     

     

    /Craig

     

  • may we replace http with https in http response payload using stream profile or irule?

     

     

    e.g.

     

    rewrite body of web-site

     

    https://devcentral.f5.com/community/group/asg/50/aft/2163916/showtab/groupforums
  • CGI's avatar
    CGI
    Icon for Altostratus rankAltostratus
    Yes that might work so would would add a blank stream profile and a irule that catches the http responses and

     

    instead modifies the response to so it starts with https.

     

     

    /Craig