Missing style in HTTPS (OVH Hosting)

Nextcloud version :
Hosting : Shared hosting OVH

The issue you are facing:

I have a small problem with two instances of Nextcloud, an old instance that I regularly update since version 12 and a brand new one.

In HTTP, everything is displayed correctly, but in HTTPS, some of the styles are missing. Here’s a screenshot:

The output of your Nextcloud log in Admin > Logging:

See screenshot, copy don't work (I think it's related to my problem).

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'stockage.xxx.pro',
  'datadirectory' => '/home/xxx/stockage/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'https://stockage.xxx.pro',
  'dbname' => 'xxx',
  'dbhost' => 'xxx.mysql.db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'stockage',
  'mail_domain' => 'xxx,
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '587',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',

The output of your Apache/nginx/system log in /var/log/____:

No access

Sorry no real idea. But you can also use browser dev tools (F12). Maybe you find a difference between HTTP and HTTPS.

Hello, I don’t see any difference between HTTPS and HTTP in the console, I have tryed before posting my question but I forgot to say that .

Thanks for your help.

Did you try a different browser or in the private mode?

I also tried Vivaldi in private mode and is the same.

and the network console doesn’t show any resources that couldn’t be loaded?

I see four 404 error :

But I don’t understand why. It’s XHR request, I don’t hava any ad blocker.

Do you find the same errors in your webserver log?

Yes, I see it in the serveur log.

I have downloaded the archive and looked in the folder user_status but I don’s see any “api” folder in it.

Ok, then it is not blocked on the client-side.

What webserver do you use, and how is it configured. How to http and https vhost differ?

I use a sharded hosting, I’m not sure about Vhost.

Hi, I had the same problem and I finally solve it by changing the PHP mode to php-cgi, as explained in : Nextcloud with https on OVH web server

Hope that this will help you too.

Thanks, I missed this conversation.