Cms: Apache issue? Client turned on SSL getting mixed content type issue

Created on 27 Aug 2020  路  8Comments  路  Source: statamic/cms

Bug Description

Everything was working fine until client switched on SSL. Then we get the mixed content type issue within the control panel. But only accessing the assets (as far as we have seen).

Tried forcing http through the AppServiceProvider as well as through the htaccess file. No luck so far.

The client is on an apache server it's something with that i expect. Other people has asked about this in the forum:
https://discordapp.com/channels/489818810157891584/489819906540568593/697068813505789992
https://discordapp.com/channels/489818810157891584/489819906540568593/747748480214237264

Locally, on my valet setup it works fine even valet securing the test domain and running this so its something with how it should be setup using apache i think

not a bug

Most helpful comment

Commenting out the following in the htaccess file sorts out the issue.
image

All 8 comments

Are you using Cloudflare for SSL?

@jasonvarga no, lets encrypt. And this also failed earlier on nginx/apache hybrid instance i ran earlier on runcloud (this it not on there). As soon as i switched to nginx it worked fine.

image

Can you post your config/statamic/sites.php ?

Ill do it in the chat privately @jasonvarga

Commenting out the following in the htaccess file sorts out the issue.
image

馃憤 Closing as this is a server config issue, not a bug.

I am sorry to be the bad guy here, but i think this might need some more investigation. Apparently this problem also occurs for MS Azure App Service hosted apps. First I thought that this only happens with the default subdomain SSL (XYZ.azurewebsites.net), however it also happens for custom domains with TLS/SSL certs.

I am very willing to help investigate the issue. Unfortunately I am rather new to both Laravel and Statamic.

This issue only occurs for Apache environments btw. I just switched to anginx for testing purposes and it seems to run fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andrewying picture andrewying  路  4Comments

AndreasSchantl picture AndreasSchantl  路  3Comments

filipac picture filipac  路  4Comments

riasvdv picture riasvdv  路  4Comments

austenc picture austenc  路  3Comments