Android: HTTP error / code 401

Created on 15 May 2020  路  11Comments  路  Source: nextcloud/android

I got the error below

Then i try to setup a nextcloud server.

Screenshot_20200515-151017

Thanks for your time !

bug

All 11 comments

Error in Android and IOS
But i can get it work inside web browser !

Thanks for your time !

error in ubuntu software / nextcloud

nextcloud_error

I works in browser on my phone. but not in both app with IOS and Android

It works inside VirtualBox with nextcloud inside. Maybe i think it's my apache2 server.

@007fred50 just checking since this is the number one configuration issue on the server side, did you set this in your config fin麓le?

'overwriteprotocol' => 'https',

see https://docs.nextcloud.com/server/18/admin_manual/configuration_server/reverse_proxy_configuration.html#overwrite-parameters

Here is my config.php:

<?php
$CONFIG = array (
  'instanceid' => 'ocnpw36p83gr',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'people8people.com:8080',
  ),
  'datadirectory' => '/media/disk8tb1/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '18.0.4.2',
  'overwrite.cli.url' => 'http://people8people.com:8080/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_nextcloud1',
  'dbpassword' => '+i9bSrPCc0pGXu94wRAwUKAa+W6KCb',
  'installed' => true,
);

i just add ('overwriteprotocol' => 'https',)

Here is my apache2 config.

<VirtualHost *:80>
    ServerName xxxx
    DocumentRoot /folder/to/www
    <Directory /folder/to/www>
        Options -Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
    <FilesMatch \.php$>
        SetHandler "proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://localhost"
    </FilesMatch>
</VirtualHost>

i just add (RewriteEngine On) ?

I added (RewriteEngine on) inside my apache2 (sites-available/*.conf)
And run this command (sudo a2enmod rewrite)

After restart (sudo service apache2 restart)

it works for me thanks

i remove the demo user.

So it is working for you now?

yes Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daywalk3r666 picture daywalk3r666  路  3Comments

Bugsbane picture Bugsbane  路  3Comments

tobiasKaminsky picture tobiasKaminsky  路  3Comments

tobiasKaminsky picture tobiasKaminsky  路  3Comments

JSoko picture JSoko  路  3Comments