URL changed to https://https//nextcloud.mydomain.nl

Nextcloud version: 27.1.3
Installed from: https://download.nextcloud.com/server/releases/latest.zip
Raspberrypi-4 8GB
Raspberry Pi OS (64-bit): 12 (bbokworm)
Caddy version: 2.7.5

When I enter “https://nextcloud.mydomain.nl” in any browser (Firefox, Chrome or DuckDuck) the URL is changed to “https://https//nextcloud.mydomain.nl/index.php/apps/dashboard/
Of course the inclusion of “https//” makes that the server is not found.
When I remove the “http//” the server opens with the dashboard.
Also when I directly enter “https://nextcloud.vandijkdebruijn.nl/index.php/apps/dashboard/” the dashboard is shown. However, when I click on the top-left Nextcloud-logo the “https//” is again included.

Setting up the Android-app fails possibly from this issue.

I have no idea where to look for a solution. Any hint welcome
cheers

Could you please provide your config?

You get it preformatted and filtered with occ:

sudo -u www-data php -f /path/to/your/nextcloud/occ support:report

then simply copy & paste the complete output from your console here, it will be formatted automatically and any secrets will be removed.

Much luck,
ernolf

Here’s my config, thanks for paying attention.

$ sudo -u caddy php -f occ support:report

Server configuration detail

Operating system: Linux 6.1.0-rpi4-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05) aarch64

Webserver: Unknown (cli)

Database: mysql 10.11.4

PHP version: 8.2.7

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, ldap, exif, mcrypt, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 27.1.3 - 27.1.3.2

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

List of activated apps
Enabled:
 - activity: 2.19.0
 - calendar: 4.5.3
 - circles: 27.0.1
 - cloud_federation_api: 1.10.0
 - comments: 1.17.0
 - contacts: 5.4.2
 - contactsinteraction: 1.8.0
 - dashboard: 7.7.0
 - dav: 1.27.0
 - federatedfilesharing: 1.17.0
 - federation: 1.17.0
 - files: 1.22.0
 - files_pdfviewer: 2.8.0
 - files_reminders: 1.0.0
 - files_rightclick: 1.6.0
 - files_sharing: 1.19.0
 - files_trashbin: 1.17.0
 - files_versions: 1.20.0
 - firstrunwizard: 2.16.0
 - logreader: 2.12.0
 - lookup_server_connector: 1.15.0
 - memories: 6.0.1
 - nextcloud_announcements: 1.16.0
 - notifications: 2.15.0
 - oauth2: 1.15.1
 - password_policy: 1.17.0
 - photos: 2.3.0
 - privacy: 1.11.0
 - provisioning_api: 1.17.0
 - recommendations: 1.6.0
 - related_resources: 1.2.0
 - serverinfo: 1.17.0
 - settings: 1.9.0
 - sharebymail: 1.17.0
 - support: 1.10.0
 - survey_client: 1.15.0
 - systemtags: 1.17.0
 - text: 3.8.0
 - theming: 2.2.0
 - twofactor_backupcodes: 1.16.0
 - updatenotification: 1.17.0
 - user_status: 1.7.0
 - viewer: 2.1.0
 - weather_status: 1.7.0
 - workflowengine: 2.9.0
Disabled:
 - admin_audit
 - bruteforcesettings
 - encryption
 - files_external
 - suspicious_login
 - twofactor_totp
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "nextcloud.vandijkdebruijn.nl",
        "vandijkdebruijn.nl",
        "localhost"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "27.1.3.2",
    "overwritehost": "https:\/\/nextcloud.vandijkdebruijn.nl",
    "overwrite.cli.url": "https:\/\/nextcloud.vandijkdebruijn.nl",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtpsecure": "ssl",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "filelocking.enabled": true,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "default_phone_region": "NL",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 6379,
        "timeout": 0,
        "password": "***REMOVED SENSITIVE VALUE***"
    },
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
    "memories.exiftool": "\/media\/pi64\/dataSSD\/caddy\/nextcloud\/apps\/memories\/bin-ext\/exiftool-aarch64-glibc",
    "memories.vod.path": "\/media\/pi64\/dataSSD\/caddy\/nextcloud\/apps\/memories\/bin-ext\/go-vod-aarch64",
    "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
    "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
    "maintenance": false,
    "theme": "",
    "loglevel": 2
}

Cron Configuration: Array
(
[backgroundjobs_mode] => cron
[lastcron] => 1700310698
)

External storages: files_external is disabled

Encryption: no

User-backends:

  • OC\User\Database

Browser: unknown

You must remove the “https://” from the “overwritehost” config value:

    'overwritehost' => 'nextcloud.vandijkdebruijn.nl',
    'overwriteprotocol' => 'https',

Much luck,
ernolf

Works!!
Thanks a lot

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.