Nextcloud version (12.0.3.3):
Operating system and version ( Raspbian Stretch 9):
Apache or nginx version ( Apache 2.4.25):
PHP version ( 7.0):
Hello,
I have a problem with my local connection to my nextcloud. No problem from outside (I can connect on my cellphone).
But in local I stay blocked on this connection page.
My nexcloud.config.php:
$CONFIG = array (
‘instanceid’ => ‘ocwd5uy6uv2c’,
‘passwordsalt’ => ‘mKj3kz+sCsAHHNSv1rix4DqYu4wXs6’,
‘secret’ => ‘pTmBLyIgaX0rJunilCnhhq1zZPCKqd5dyd+2LknZSlZB+rkK’,
‘trusted_domains’ =>
array (
0 => ‘kyo07**.duckdns.org’,
1 => ‘192.168.1.23’,
),
‘datadirectory’ => ‘/var/www/data’,
‘overwrite.cli.url’ => ‘https://kyo07**.duckdns.org’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘12.0.3.3’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘kyo07**’,
‘dbpassword’ => ‘***************’,
‘installed’ => true,
‘logtimezone’ => ‘Europe/Paris’,
‘logfile’ => ‘/var/www/data/nextcloud.log’,
‘loglevel’ => 2,
‘log_authfailip’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘auth.bruteforce.protection.enabled’ => true,
);
My site-available/nexcloud.conf :
<VirtualHost 192.168.1.23:80>
DocumentRoot “/var/www/nextcloud”
ServerName kyo07**.duckdns.org
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
Satisfy Any
<VirtualHost :80>
DocumentRoot “/var/www/nextcloud”
ServerName kyo07*.duckdns.org
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
RewriteEngine on
RewriteCond %{SERVER_NAME} =kyo07**.duckdns.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
192.168.1.23 is my RPI2 on the local network
I can Ping my adress easily no problem:
Microsoft Windows [version 10.0.15063]
(c) 2017 Microsoft Corporation. Tous droits réservés.
C:\WINDOWS\system32>ping -n 3 192.168.1.23
Envoi d’une requête ‘Ping’ 192.168.1.23 avec 32 octets de données :
Réponse de 192.168.1.23 : octets=32 temps=11 ms TTL=64
Réponse de 192.168.1.23 : octets=32 temps=8 ms TTL=64
Réponse de 192.168.1.23 : octets=32 temps=4 ms TTL=64
Statistiques Ping pour 192.168.1.23:
Paquets : envoyés = 3, reçus = 3, perdus = 0 (perte 0%),
Durée approximative des boucles en millisecondes :
Minimum = 4ms, Maximum = 11ms, Moyenne = 7ms
My nextcloud /var/log/apache2/access.log:
80.12.58.1** - - [01/Nov/2017:16:41:44 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 200 1488 “-” “Mozilla/5.0 (Linux; Android 6.0; XT1068 Build/MPB24.65-34-3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.125 Mobile Safari/537.36”
80.12.58.1** - - [01/Nov/2017:16:43:07 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 200 4527 “-” “Mozilla/5.0 (Linux; Android 6.0; XT1068 Build/MPB24.65-34-3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.125 Mobile Safari/537.36”
80.12.58.1** - - [01/Nov/2017:16:47:13 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 200 1488 “-” “Mozilla/5.0 (Linux; Android 6.0; XT1068 Build/MPB24.65-34-3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.125 Mobile Safari/537.36”
192.168.1.15 - - [01/Nov/2017:16:51:17 +0000] “POST /index.php/heartbeat HTTP/1.1” 200 1499 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0”
192.168.1.15 - - [01/Nov/2017:16:51:56 +0000] “POST /index.php/login?redirect_url=/index.php/apps/files/ HTTP/1.1” 303 1533 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0”
192.168.1.15 - - [01/Nov/2017:16:51:56 +0000] “GET /index.php/apps/files/ HTTP/1.1” 303 1551 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0”
192.168.1.15 - - [01/Nov/2017:16:51:57 +0000] “GET /index.php/login?redirect_url=/index.php/apps/files/ HTTP/1.1” 200 4688 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0”
192.168.1.15 - - [01/Nov/2017:16:51:57 +0000] “GET /cron.php HTTP/1.1” 200 1530 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0”
80.12.58.1** is my cellphone ip => OK
192.168.1.15 is my computer in local => Authentication error
Others informations:
Port 80 and 443 are open and appaired with my RPI2.
Firewall of my computer and Internet Box are disabled.
All seems to be ok, i don’t understand why i’m not allowed to connect me in local…
Thanks for your help by advance.
ML