Https not working

Hello,
I’m new user of nextcloud and i’m facing issue.
I’m using a Shared hosting server ovh.

Nextcloud version : 15
Operating system and version : I don’t know
Apache or nginx version : I don’t know
PHP version : 7.2

My cloud work correctly in http but when i try to switch https it doesn’t work.
I can’t log in https and when i log in htttp and switch to https the home page is empty…
HTTPS is actived and it work my certificate is let’s encrypte

The output of your Nextcloud log in Admin > Logging:

Log is empty

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

<?php
$CONFIG = array (
  'instanceid' => 'oczmmajqude8',
  'passwordsalt' => 'XXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXX',
  'trusted_domains' => 
  array (
    0 => 'www.nextcloud-perso.tremblin.fr',
  ),
  'datadirectory' => '/home/tremblinlu/MyNextCloud/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '15.0.2.0',
  'overwrite.cli.url' => 'http://www.nextcloud-perso.tremblin.fr/nextcloud',
  'dbname' => 'tremblinluovhdb',
  'dbhost' => 'tremblinluovhdb.mysql.db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxxxxxx',
  'dbpassword' => 'xxxxxxx',
  'installed' => true,
);

Please help.thanks

These are essential informations. You should know your system environment.

For https to work you need a separate virtual host. You have one for http, you need one for https. This is part of the apache/nginx configuration.

Thanks for answer.
These informations are not given in my ovh account.where i can find them ?

Sorry, I don’t know ovh. Is this some kind of web hosting service? Do you pay for it? They should have some support service. Generally, I am not a friend of web hosting services. I think to run server software like nextcloud, you need full root access so you are able to do all management yourself. But this is just my point, others may think different.

Yes its hosting service and I paid for it.

Hi. Domain does not have an SSL certificate?
If not, you must create it.

Yes i have one

The version of Apache is 2.4
http://cluster015.ovh.net/infos/