# Cloud behind Apache Proxy not responding

**URL:** <https://help.nextcloud.com/t/cloud-behind-apache-proxy-not-responding/8225>\
**Category:** ℹ️ Support\
**Created:** [January 30, 2017, 2:32pm UTC](https://help.nextcloud.com/t/cloud-behind-apache-proxy-not-responding/8225 "2017-01-30T14:32:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clougdev](https://help.nextcloud.com/letter_avatar/clougdev/32/6_22734026db12803ebb3e059622ac3534.png) [@clougdev](https://help.nextcloud.com/u/clougdev)\
**Post date:** [January 30, 2017, 2:32pm UTC](https://help.nextcloud.com/t/cloud-behind-apache-proxy-not-responding/8225/1 "2017-01-30T14:32:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [February 1, 2017, 9:45am UTC](https://help.nextcloud.com/t/cloud-behind-apache-proxy-not-responding/8225/2 "2017-02-01T09:45:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![clougdev](https://help.nextcloud.com/letter_avatar/clougdev/32/6_22734026db12803ebb3e059622ac3534.png) [@clougdev](https://help.nextcloud.com/u/clougdev)\
**Post date:** [February 20, 2017, 4:19pm UTC](https://help.nextcloud.com/t/cloud-behind-apache-proxy-not-responding/8225/3 "2017-02-20T16:19:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JasonBayton](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jasonbayton/32/297_2.png) [@JasonBayton](https://help.nextcloud.com/u/JasonBayton)\
**Post date:** [February 20, 2017, 5:29pm UTC](https://help.nextcloud.com/t/cloud-behind-apache-proxy-not-responding/8225/4 "2017-02-20T17:29:11Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 1:14pm UTC](https://help.nextcloud.com/t/cloud-behind-apache-proxy-not-responding/8225/5 "2024-12-09T13:14:23Z")

</div>


