Nextcloud AIO: Windows client resolves to the wrong URL - 404 from /nextcloud/status.php

The Basics

  • Fresh installation with Nextcloud AIO (30.0.10) on a RaspberryPi4
  • No changes to the reverse proxy
  • No other applications running besides Nextcloud AIO containers

Summary of the issue you are facing:

Web access <sub.domain.tld> works
iOS App works with serverpath https://<sub.domain.tld>
Windows client does not work:

  • I receive a “404 Not Found” from “GET <sub.domain.tld>/nextcloud/status.php”
  • Indeed, there is not <sub.domain.tld>/nextcloud/status.php
  • The correct path would be <sub.domain.tld>/status.php (which works with the browser)

Steps to replicate it (hint: details matter!):

  1. Open freshly installed Windows client
  2. Type in server path https://<sub.domain.tld>
  3. Accept self signed certificate
  4. Find the error message stated above
  5. I tried it with overwritewebroot => ‘’ as well as w/o - in both cases I receive the same error message

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

<?php
$CONFIG = array (
  'one-click-instance' => true,
  'one-click-instance.user-limit' => 100,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'check_data_directory_permissions' => false,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'nextcloud-aio-redis',
    'password' => '<>',
    'port' => 6379,
  ),
  'overwritehost' => '<sub.domain.tld>',
  'overwriteprotocol' => 'https',
  'overwritewebroot' => '',
  'passwordsalt' => '<>',
  'secret' => '<>',
 'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '<sub.domain.tld>',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '30.0.10.1',
  'overwrite.cli.url' => 'https://<sub.domain.tld>/',
  'dbname' => 'nextcloud_database',
  'dbhost' => 'nextcloud-aio-database:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_nextcloud',
  'dbpassword' => '<>',
  'installed' => true,
  'instanceid' => '<>',
  'maintenance' => false,
  'updatedirectory' => '/nc-updater',
  'app_install_overwrite' =>
  array (
    0 => 'nextcloud-aio',
  ),
  'loglevel' => 2,
  'log_type' => 'file',
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_rotate_size' => 10485760,
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
 ),
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'jpeg_quality' => 60,
  'enabledPreviewProviders' =>
  array (
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MarkDown',
    3 => 'OC\\Preview\\MP3',
    4 => 'OC\\Preview\\TXT',
    5 => 'OC\\Preview\\OpenDocument',
    6 => 'OC\\Preview\\Movie',
    7 => 'OC\\Preview\\Krita',
    0 => 'OC\\Preview\\Imaginary',
    23 => 'OC\\Preview\\ImaginaryPDF',
  ),
  'enable_previews' => true,
  'upgrade.disable-web' => true,
  'mail_smtpmode' => 'smtp',
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 30',
  'activity_expire_days' => 30,
  'simpleSignUpLink.shown' => false,
  'share_folder' => '/Shared',
  'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
  'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
  'maintenance_window_start' => 100,
  'allow_local_remote_servers' => true,
  'davstorage.request_timeout' => 3600,
  'documentation_url.server_logs' => 'https://github.com/nextcloud/all-in-one/discussions/5425',
  'htaccess.RewriteBase' => '/',
  'dbpersistent' => false,
  'auth.bruteforce.protection.enabled' => true,
'ratelimit.protection.enabled' => true,
  'files_external_allow_create_new_local' => false,
  'trusted_proxies' =>
  array (
    0 => '<>',
    1 => '<>',
    10 => '<>',
  ),
  'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
  'preview_imaginary_key' => '<>',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_from_address' => '<>',
  'mail_domain' => '<>',
  'mail_smtphost' => '<>',
  'mail_smtpport' => '465',
  'mail_smtpname' => '<>',
  'mail_smtppassword' => '<>',
  'mail_smtpsecure' => 'ssl',
);

Thanks for your help :slightly_smiling_face: