Kemp: solve the problem of mixed content

If you use Kemp to dump to pass an internet site in HTTPS, it is possible that part of the content of the site (images, css, js) does not appear, the browser returns a Mixed Content error, it means that calls to resources are made in HTTP.

To solve this problem, one must make a rule that will rewrite the urls in the html content.

1. From the interface, go to Rules & Checking 1 / Content rules 2 and click on Create New … 3 .
New rule

2. Create the rule as below:

1 Name the rule
2 Type: Replace String in Response Body
3 Match string : /http:\/\/
4 Replacement text : https://
5 Click on Create Rule

3. Go to the list of services and click on Modify 1 where the rule must be applied.

4. Display the Advanced Properties 1 section and click on Show Body Modification Rules 2 .

5. Select the rule that was created before 1 and click Add 2 .

6. The rule is added 1 . Click Back to return to the VService configuration.

Reload the website, the problem should be solved, if the problem persists and the server sends a compressed response, delete the Accept-Encoding header sent by the client.

7. Add a content modification rule (Rules & Checking / Content Rules / Create New) with the following settings:

1 Rule Type : Delete Header
2 Header Field to be Deleted : Accept-Encoding

8. Return to the VService in the Advanced Properties section and apply the rule on the Show Header Rules 1 section.

9. Add Rule 1 at the Request Rules level.

10. Reload the site, the problem of mixed content should be solved



Related Posts


GPO: Deploy a certificate

Presentation In this tutorial, we will see how to deploy a certificate on computers using a GPO. Some cases where you may need to distribute a certificate: Internal Certification Authority Appliance c

Redirect HTTP to HTTPS over IIS

In this tutorial, we'll see how to automatically redirect http requests to https under IIS. Prerequisites : Valid configuration of your site with SSL. Have the Rewrite module installed under IIS. The

Stormshield: url filtering https without decryption

Presentation In this tutorial, we'll see how to set up https url filtering (SSL) without needing to decrypt and therefore deploy the stormshield certificate. This solution does not display a blocking

Scroll to Top