Client connection return 404

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 18.0.2): 19.0.0.12
Operating system and version (eg, Ubuntu 20.04): CentOS Linux release 7.8.2003
Apache or nginx version (eg, Apache 2.4.25): nginx/1.18.0
PHP version (eg, 7.1): PHP 7.3.19

The problem you’re facing:
I will say that the system, with the configuration provided by you for nginx, the application works wonderfully, except for this small detail:
trying to connect the client, in the access log I see the API accesses that return the HTTP codes 304 and 404.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Download client for windows
  2. Insert connection server address
  3. view nginx access logs

The output of your Nextcloud log in Admin > Logging:

I can't find this log  

The output of your config.php file in /config/config.php (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
"log_type" => "file",
"logfile" => "nextcloud.log",
"loglevel" => 4,
"logdateformat" => "F d, Y H:i:s",
'log.condition' => [
        'apps' => ['admin_audit'],
],
   "overwriteprotocol" => "https",
  'instanceid' => 'ocks46chgop5',
  'passwordsalt' => 'X3xAlTFCyQKtHG55j4WYqFholdHqSx',
  'secret' => '4+IkW1IDe5C83dNfWWxhvi6KGxGtn2Yy/KdHgcAvQxbG5FcG',
  'trusted_domains' =>
  array (
    0 => 'cloud.therascals.it',
  ),
  'datadirectory' => '/var/www/vhosts/cloud.therascals.it/httpdocs/data',
  'dbtype' => 'mysql',
  'version' => '19.0.0.12',
  'overwrite.cli.url' => 'https://cloud.therascals.it',
  'dbname' => 'XXXXXX',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXXXXXX',
  'dbpassword' => 'XXXXXXXX',
  'installed' => true,
  'mail_from_address' => 'cloud',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'therascals.it',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'smtps.*.it',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
);
[root@srv1 httpdocs]#

The output of your Apache/nginx/system log in /var/log/____:

    [0.347 0.347 .] - cloud.therascals.it - 2.38.84.52 - - [28/Jun/2020:16:13:56 +0200]  "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"
    [0.448 0.448 .] - cloud.therascals.it - 2.38.84.52 - - [28/Jun/2020:16:13:57 +0200]  "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"
    [0.359 0.359 .] - cloud.therascals.it - 2.38.84.52 - - [28/Jun/2020:16:14:07 +0200]  "POST /login/v2/poll HTTP/1.1" 404 2 "-" "Mozilla/5.0 (Windows) mirall/2.6.4stable-Win64 (build 20200303) (Nextcloud)"

    ==> /var/www/logs/cloud.therascals.it/error.log <==

    ==> /var/www/logs/cloud.therascals.it/access.log <==
    [0.358 0.358 .] - cloud.therascals.it - 2.38.84.52 - - [28/Jun/2020:16:14:26 +0200]  "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"
    [0.292 0.293 .] - cloud.therascals.it - 2.38.84.52 - - [28/Jun/2020:16:14:27 +0200]  "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"