Cloud behind Apache Proxy not responding

I almost tried everything but nextcloud server not responding from behind the apache proxy server. Mobile Chrome browser giving me “to many redirects” and desktop Chrome showing my main website from the server. I am sure someone will help me out here,

config/config.php

<?php
$CONFIG = array (
  'instanceid' => '****************',
  'passwordsalt' => '**********************************',
  'secret' => '********************************************************************',
  'trusted_domains' => 
  array (
    0 => 'sync.mysite.com',
  ),
  'datadirectory' => '/cloudbox/data',
  'overwrite.cli.url' => 'https://sync.mysite.com',
  'trusted_proxies'  => ['192.168.1.39'], #Trusted Proxy Server
  'dbtype' => 'mysql',
  'version' => '9.1.2.2',
  'dbname' => 'databasename',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'databaseadmin',
  'dbpassword' => '****************',
  'logtimezone' => 'UTC',
  'installed' => true,
  'updater.release.channel' => 'production',
  'memcache.local' => '\OC\Memcache\APCu',
  
  "apps_paths" => array (
      0 => array (
              "path"     => OC::$SERVERROOT."/apps",
              "url"      => "/apps",
              "writable" => false,
      ),
      1 => array (
              "path"     => OC::$SERVERROOT."/apps2",
              "url"      => "/apps2",
              "writable" => true,
      ),
  ),
  
);

/etc/apache2/sites-available/000-default.conf

<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTPS} off 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

<IfModule mod_ssl.c>
    <VirtualHost *:443>
        ServerAdmin webmaster@example.com
        ServerName sync.mysite.com
		
        #DocumentRoot /var/www
        #SSLEngine on
        #SSLOptions +StrictRequire
        #SSLCertificateFile  /etc/ssl/apache_certs/www_example.com.crt
        #SSLCertificateKeyFile   /etc/ssl/apache_certs/official.key
        #SSLCertificateChainFile /etc/ssl/apache_certs/PositiveSSL.ca-bundle
        
        ProxyPass /       https://192.168.1.41:443/
        ProxyPassReverse / https://192.168.1.41:443/
		
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
</IfModule>

Please help me how to fix this error

You need to find out, where this redirect-loop is originated, you can use services like
http://redirectdetective.com/
(you can do that yourself with use of curl)

Sorry for late reply, I solved the problem. I had an issue with Apache Proxy.