Reverse proxy and data directory

Hi,

i will access my nextCloud server via a reverse proxy, but I get an error message in the nextCloud webinterface:

This directory is unavailable, please check the logs or contact the administrator

My setup:

Proxy with apache2 --> nextcloud server

the url http://192.168.1.10/nextcloud should point to http://192.168.1.20/

The vhost for 192.168.1.10:

<VirtualHost *:80>
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/html
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined

  ProxyPreserveHost On

  ProxyPass /nextcloud http://192.168.1.20:8080/
  ProxyPassReverse /nextcloud http://192.168.1.20:8080/
  ServerName 192.168.1.10
</VirtualHost>

The vhost for 192.168.1.20:

<VirtualHost *:8080>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        ServerName 192.168.213.49

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        <Directory /var/www/html/>
                Options +FollowSymlinks
                AllowOverride All
                Allow from all
        </Directory>
        TransferLog /var/log/apache2/nextcloud_access.log
        ErrorLog /var/log/apache2/nextcloud_error.log
</VirtualHost>

The nextcloud config:

<?php
$CONFIG = array (

  'trusted_domains' => 
  array (
    0 => '192.168.1.10',
    1 => '192.168.1.20',
  ),

  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '12.0.4.3',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'passwort',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  "trusted_proxies"   => ['192.168.1.10'],
  "overwritehost"     => "192.168.1.10",
  "overwriteprotocol" => "http",
  "overwritewebroot"  => "/nextcloud",
  "overwrite.cli.url" => "http://192.168.1.10/nextcloud",
);

I tried a lot of config options but nothing helps. The webinterface is accessable but the message regarding the data directory is still there.

Perhaps somebody knows what I have to do to deal with that.

I´m not very familiar with Apache2 Reverse Proxy Configurations, but i will try:

It seems you have your Nextcloud root under /var/www/html and your datadirectory under /var/www/html/ data.

Doublecheck if that paths are correct, and also it is highly recommended to put the Data Directory youtside of your webroot, for example to /data.

Also following line in config.php makes little sense to me:
“overwriteprotocol” => “http”,
In this case, without using https it may be redundant.

Is your Reverse Proxy configured to be a webserver on his own? because it has his own webroot defined. So you try to access your.domain.com/nextcloud and want to be forwarded to your NC instance, where you plan to implement other Services through this Reverse Proxy? If this does not apply, then try to strip down your setup to the simplest possible one.

Thanks.

nextCloud is running on its own server. It is planned to deploy other services on their own servers via the proxy server. The proxy server itsself should deliver a small wiki because a special server for only a wiki is too much.

the nextcloud root is under /var/www/html and the data directory is /var/www/html/data. This server is only for the nextcloud, nothing others. I can try to move the data directory but I think, this would not solve the problem.

Exactly, that /data folder issue is unrelated to your issue, but worth a look nontheless.

Please descripe exactly when the errormessage occours. After logon, before logon?

Does it work if you call 192.168.1.20 directly?

could you post apache logs and nextcloud logs from the server(s)?

is everything chowned correctly?

The message occurs after the login. When I go to http://192.168.1.10/nextcloud I see the login page. After login in the nextcloud start page was loaded, the message occurs.

I cant directly call 192.168.1.20 because of the nextcloud config. When I call this adress I will be redirected to 192.168.1.10/nextcloud and I get the message (
This directory is unavailable, please check the logs or contact the administrator
)

Here are the logs:

error-log from the proxy apache:

[Mon Dec 11 10:29:23.879995 2017] [mpm_event:notice] [pid 10557:tid 140439812748480] AH00489: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Mon Dec 11 10:29:23.880795 2017] [core:notice] [pid 10557:tid 140439812748480] AH00094: Command line: '/usr/sbin/apache2'

acces-log from the proxy:

192.168.213.64 - - [11/Dec/2017:16:31:37 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:07 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:23 +0100] "GET /nextcloud/index.php/apps/files/ HTTP/1.1" 200 7209 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:23 +0100] "GET /nextcloud/apps/contacts/img/app.svg?v=f3f22fea39f5b6d542fa043ef3ee75c3 HTTP/1.1" 304 180 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:23 +0100] "GET /nextcloud/apps/calendar/img/calendar.svg?v=f3f22fea39f5b6d542fa043ef3ee75c3 HTTP/1.1" 304 181 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:23 +0100] "GET /nextcloud/index.php/apps/theming/js/theming?v=0 HTTP/1.1" 200 1093 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:23 +0100] "GET /nextcloud/index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1" 200 955 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:23 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 699 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:23 +0100] "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 500 808 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:23 +0100] "GET /nextcloud/cron.php HTTP/1.1" 200 889 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:24 +0100] "GET /nextcloud/index.php/apps/systemtags/lastused HTTP/1.1" 200 852 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:37 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:54 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:33:07 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:33:24 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:33:37 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:33:54 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:34:07 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:34:24 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:34:37 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:34:54 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:07 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:24 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:37 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:42 +0100] "GET /nextcloud/ HTTP/1.1" 302 929 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:42 +0100] "GET /nextcloud/index.php/apps/files/ HTTP/1.1" 200 7203 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:42 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:42 +0100] "GET /nextcloud/cron.php HTTP/1.1" 200 889 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:42 +0100] "GET /nextcloud/index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1" 200 955 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:43 +0100] "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 500 808 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:35:43 +0100] "GET /nextcloud/index.php/apps/systemtags/lastused HTTP/1.1" 200 852 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"

apache acces-log from nectcloud server:

192.168.213.49 - - [11/Dec/2017:16:32:07 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.64 - - [11/Dec/2017:16:32:22 +0100] "GET / HTTP/1.1" 302 930 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //index.php/apps/files/ HTTP/1.1" 200 7209 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //apps/contacts/img/app.svg?v=f3f22fea39f5b6d542fa043ef3ee75c3 HTTP/1.1" 304 180 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //apps/calendar/img/calendar.svg?v=f3f22fea39f5b6d542fa043ef3ee75c3 HTTP/1.1" 304 180 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //index.php/apps/theming/js/theming?v=0 HTTP/1.1" 200 1095 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1" 200 955 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "PROPFIND //remote.php/webdav/ HTTP/1.1" 500 808 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //cron.php HTTP/1.1" 200 889 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:24 +0100] "GET //index.php/apps/systemtags/lastused HTTP/1.1" 200 852 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:37 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:32:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:33:07 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:33:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:33:37 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:33:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:34:07 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:34:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:34:37 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:34:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:07 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:37 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET // HTTP/1.1" 302 929 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET //index.php/apps/files/ HTTP/1.1" 200 7203 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET //cron.php HTTP/1.1" 200 889 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET //index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1" 200 955 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:43 +0100] "PROPFIND //remote.php/webdav/ HTTP/1.1" 500 808 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:43 +0100] "GET //index.php/apps/systemtags/lastused HTTP/1.1" 200 852 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:35:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:36:12 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:36:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:36:42 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:36:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:37:13 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
192.168.213.49 - - [11/Dec/2017:16:37:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"

nextcloud access-log from the nextcloud server:

192.168.213.49 - - [11/Dec/2017:16:31:07 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:31:37 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:32:07 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.64 - - [11/Dec/2017:16:32:22 +0100] "GET / HTTP/1.1" 302 -
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //index.php/apps/files/ HTTP/1.1" 200 6281
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //apps/contacts/img/app.svg?v=f3f22fea39f5b6d542fa043ef3ee75c3 HTTP/1.1" 304 -
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //apps/calendar/img/calendar.svg?v=f3f22fea39f5b6d542fa043ef3ee75c3 HTTP/1.1" 304 -
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //index.php/apps/theming/js/theming?v=0 HTTP/1.1" 200 196
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1" 200 102
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "PROPFIND //remote.php/webdav/ HTTP/1.1" 500 275
192.168.213.49 - - [11/Dec/2017:16:32:23 +0100] "GET //cron.php HTTP/1.1" 200 20
192.168.213.49 - - [11/Dec/2017:16:32:24 +0100] "GET //index.php/apps/systemtags/lastused HTTP/1.1" 200 2
192.168.213.49 - - [11/Dec/2017:16:32:37 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:32:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:33:07 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:33:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:33:37 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:33:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:34:07 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:34:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:34:37 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:34:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:35:07 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:35:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:35:37 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET // HTTP/1.1" 302 -
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET //index.php/apps/files/ HTTP/1.1" 200 6276
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET //cron.php HTTP/1.1" 200 20
192.168.213.49 - - [11/Dec/2017:16:35:42 +0100] "GET //index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1" 200 102
192.168.213.49 - - [11/Dec/2017:16:35:43 +0100] "PROPFIND //remote.php/webdav/ HTTP/1.1" 500 275
192.168.213.49 - - [11/Dec/2017:16:35:43 +0100] "GET //index.php/apps/systemtags/lastused HTTP/1.1" 200 2
192.168.213.49 - - [11/Dec/2017:16:35:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:36:12 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:36:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:36:42 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:36:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:37:13 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:37:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:37:43 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:37:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:38:13 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:38:24 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:38:43 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:38:54 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
192.168.213.49 - - [11/Dec/2017:16:39:13 +0100] "GET //ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74

Here are some logs of nextcloud itself:

Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:47:45+0100
Debug	cron	Finished OCA\Files\BackgroundJob\ScanFiles job with ID 3 in 0 seconds	2017-12-11T16:47:45+0100
Debug	OC\Files\Cache\Scanner	!!! Path '' is not accessible or present !!!	2017-12-11T16:47:45+0100
Debug	cron	Run OCA\Files\BackgroundJob\ScanFiles job with ID 3	2017-12-11T16:47:45+0100
Debug	core	Scss is disabled for /var/www/html/core/css/share.scss, ignoring	2017-12-11T16:47:42+0100
Debug	core	Scss is disabled for /var/www/html/core/css/server.scss, ignoring	2017-12-11T16:47:42+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:47:42+0100
Debug	cron	Finished OCA\Files_Versions\BackgroundJob\ExpireVersions job with ID 2 in 0 seconds	2017-12-11T16:47:42+0100
Debug	cron	Run OCA\Files_Versions\BackgroundJob\ExpireVersions job with ID 2	2017-12-11T16:47:42+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:47:37+0100
Debug	core	Scss is disabled for /var/www/html/core/css/share.scss, ignoring	2017-12-11T16:44:36+0100
Debug	core	Scss is disabled for /var/www/html/core/css/server.scss, ignoring	2017-12-11T16:44:36+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:44:36+0100
Debug	cron	Finished OC\Authentication\Token\DefaultTokenCleanupJob job with ID 15 in 0 seconds	2017-12-11T16:44:36+0100
Debug	cron	Invalidating remembered session tokens older than 2017-11-26T15:44:36+00:00	2017-12-11T16:44:36+0100
Debug	cron	Invalidating session tokens older than 2017-12-10T15:44:36+00:00	2017-12-11T16:44:36+0100
Debug	cron	Run OC\Authentication\Token\DefaultTokenCleanupJob job with ID 15	2017-12-11T16:44:36+0100
Debug	cron	Finished OCA\UpdateNotification\Notification\BackgroundJob job with ID 14 in 1 seconds	2017-12-11T16:44:27+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:44:26+0100
Debug	core	Scss is disabled for /var/www/html/core/css/share.scss, ignoring	2017-12-11T16:44:26+0100
Debug	core	Scss is disabled for /var/www/html/core/css/server.scss, ignoring	2017-12-11T16:44:26+0100
Debug	cron	Run OCA\UpdateNotification\Notification\BackgroundJob job with ID 14	2017-12-11T16:44:26+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:44:23+0100
Debug	core	Scss is disabled for /var/www/html/core/css/share.scss, ignoring	2017-12-11T16:44:23+0100
Debug	core	Scss is disabled for /var/www/html/core/css/server.scss, ignoring	2017-12-11T16:44:23+0100
Debug	cron	Finished OCA\Activity\BackgroundJob\ExpireActivities job with ID 13 in 0 seconds	2017-12-11T16:44:23+0100
Debug	cron	Run OCA\Activity\BackgroundJob\ExpireActivities job with ID 13	2017-12-11T16:44:23+0100
Debug	core	Scss is disabled for /var/www/html/core/css/share.scss, ignoring	2017-12-11T16:44:14+0100
Debug	core	Scss is disabled for /var/www/html/core/css/server.scss, ignoring	2017-12-11T16:44:14+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:44:14+0100
Debug	cron	Finished OCA\Activity\BackgroundJob\EmailNotification job with ID 12 in 0 seconds	2017-12-11T16:44:14+0100
Debug	cron	Run OCA\Activity\BackgroundJob\EmailNotification job with ID 12	2017-12-11T16:44:14+0100
Debug	core	Scss is disabled for /var/www/html/core/css/share.scss, ignoring	2017-12-11T16:44:11+0100
Debug	core	Scss is disabled for /var/www/html/core/css/server.scss, ignoring	2017-12-11T16:44:11+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:44:11+0100
Debug	cron	Finished OCA\Files_Sharing\ExpireSharesJob job with ID 11 in 0 seconds	2017-12-11T16:44:11+0100
Debug	cron	Run OCA\Files_Sharing\ExpireSharesJob job with ID 11	2017-12-11T16:44:11+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:43:53+0100
Debug	core	Scss is disabled for /var/www/html/core/css/share.scss, ignoring	2017-12-11T16:43:53+0100
Debug	core	Scss is disabled for /var/www/html/core/css/server.scss, ignoring	2017-12-11T16:43:53+0100
Debug	cron	Finished OCA\Files_Sharing\DeleteOrphanedSharesJob job with ID 10 in 0 seconds	2017-12-11T16:43:53+0100
Debug	DeleteOrphanedSharesJob	0 orphaned share(s) deleted	2017-12-11T16:43:53+0100
Debug	cron	Run OCA\Files_Sharing\DeleteOrphanedSharesJob job with ID 10	2017-12-11T16:43:53+0100
Debug	cron	Finished OCA\Files_Trashbin\BackgroundJob\ExpireTrash job with ID 9 in 0 seconds	2017-12-11T16:43:45+0100
Debug	cron	Run OCA\Files_Trashbin\BackgroundJob\ExpireTrash job with ID 9	2017-12-11T16:43:45+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:35:43+0100
Debug	cron	Finished OCA\Federation\SyncJob job with ID 8 in 0 seconds	2017-12-11T16:35:42+0100
Debug	cron	Run OCA\Federation\SyncJob job with ID 8	2017-12-11T16:35:42+0100
Debug	cron	Finished OCA\DAV\CardDAV\SyncJob job with ID 6 in 1 seconds	2017-12-11T16:32:24+0100
Debug	cron	Finished OCA\Federation\SyncJob job with ID 8 in 0 seconds	2017-12-11T16:35:42+0100
Debug	cron	Run OCA\Federation\SyncJob job with ID 8	2017-12-11T16:35:42+0100
Debug	cron	Finished OCA\DAV\CardDAV\SyncJob job with ID 6 in 1 seconds	2017-12-11T16:32:24+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T16:32:23+0100
Debug	cron	Run OCA\DAV\CardDAV\SyncJob job with ID 6	2017-12-11T16:32:23+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T15:04:31+0100
Debug	cron	Finished OCA\Files\BackgroundJob\CleanupFileLocks job with ID 5 in 0 seconds	2017-12-11T15:04:31+0100
Debug	cron	Run OCA\Files\BackgroundJob\CleanupFileLocks job with ID 5	2017-12-11T15:04:31+0100
Debug	cron	Finished OCA\Files\BackgroundJob\DeleteOrphanedItems job with ID 4 in 0 seconds	2017-12-11T15:04:21+0100
Debug	DeleteOrphanedItems	0 orphaned comment read marks deleted	2017-12-11T15:04:21+0100
Debug	DeleteOrphanedItems	0 orphaned comments deleted	2017-12-11T15:04:21+0100
Debug	DeleteOrphanedItems	0 orphaned user tag relations deleted	2017-12-11T15:04:21+0100
Debug	DeleteOrphanedItems	0 orphaned system tag relations deleted	2017-12-11T15:04:21+0100
Debug	cron	Run OCA\Files\BackgroundJob\DeleteOrphanedItems job with ID 4	2017-12-11T15:04:21+0100
Debug	core	Scss is disabled for /var/www/html/core/css/share.scss, ignoring	2017-12-11T15:04:20+0100
Debug	core	Scss is disabled for /var/www/html/core/css/server.scss, ignoring	2017-12-11T15:04:20+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T11:54:06+0100
Debug	cron	Finished OCA\Files\BackgroundJob\ScanFiles job with ID 3 in 0 seconds	2017-12-11T11:54:06+0100
Debug	OC\Files\Cache\Scanner	!!! Path '' is not accessible or present !!!	2017-12-11T11:54:06+0100
Debug	cron	Run OCA\Files\BackgroundJob\ScanFiles job with ID 3	2017-12-11T11:54:06+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T11:48:42+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T11:47:24+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:55:42+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:52:54+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:49:08+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:46:11+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:38:16+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:36:29+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:33:56+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:33:53+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:33:48+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:33:43+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:33:37+0100
Fatal	webdav	LogicException: Requested uri (/nextcloud/remote.phpp/webdav/) is out of base uri (/nextcloud/remote.php/webdav/)	2017-12-11T10:29:43+0100
Warning	core	Trusted domain error. "192.168.1.10" tried to access using "192.168.1.10" as host.

When I comment out the proxy settings in the nextcloud config and call the nextcloud server ip directly, nextcloud is working

Found the problem. In the apache vhost file of the proxy:

ProxyPass /nextcloud http://192.168.1.20:8080
ProxyPassReverse /nextcloud http://192.168.1.20:8080

instead of

ProxyPass /nextcloud http://192.168.1.20:8080/
ProxyPassReverse /nextcloud http://192.168.1.20:8080/

The last slashes where to much

2 Likes

Of course, i didnt see that either. Glad it works now. Sometimes it the small things.