Hello,
I recently migrated my Nextcloud installation from Nextcloud 12.0.2 with (php5.5-fpm + nginx 1.13.9) to (php-7.2-fpm + nginx 1.13.9). I followed the instructions described here. A redirection issue appeared.
Description of the issue
After logging in, an infinite redirection takes place, to https://cloud.server.com/index.php/apps/files/
I’m quite sure this is not a scheme issue (HTTP <-> HTTPS back and forth redirection), since I had no issue with Nextcloud 12
So far, I tried the following :
-
Googling the issue
-
Reading issues raised by other Nextcloud users on this forum
-
Fixing permissions on /usr/lib/php/* directories
But none of these helped.
Here is my nginx config :
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name cloud.server.com;
root html/nextcloud_13;
error_log logs/nextcloud/error.log;
access_log logs/nextcloud/access.log;
include /etc/nginx/conf/ssl.conf;
location ~ \.php.* {
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
}
}
location ~ /config {
deny all;
}
location / {
rewrite ^/\.well-known/caldav /remote.php/dav permanent;
}
}
Here is my config.php (which I copied from the previous Nextcloud folder)
<?php
$CONFIG = array (
'instanceid' => 'xxx',
'passwordsalt' => xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'www.server.com',
1 => 'cloud.server.com',
),
'datadirectory' => '/home/nextcloud',
'overwrite.cli.url' => 'https://www.server.com',
'dbtype' => 'mysql',
'version' => '13.0.2.1',
'dbname' => 'nextclouddb',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxx',
'dbpassword' => 'xxx',
'installed' => true,
'theme' => '',
'maintenance' => false,
'loglevel' => 2,
'mail_smtpmode' => 'php',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'nextcloud',
'mail_domain' => 'server.com',
);
Any help is greatly appreciated.