# Client login fails with 401

**URL:** <https://help.nextcloud.com/t/client-login-fails-with-401/29378>\
**Category:** 📱 Desktop & mobile clients\
**Created:** [March 23, 2018, 10:38am UTC](https://help.nextcloud.com/t/client-login-fails-with-401/29378 "2018-03-23T10:38:38Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![fabian727](https://help.nextcloud.com/letter_avatar/fabian727/32/5_5575768a8748004e209b776fc1b2916d.png) [@fabian727](https://help.nextcloud.com/u/fabian727)\
**Post date:** [March 23, 2018, 3:43pm UTC](https://help.nextcloud.com/t/client-login-fails-with-401/29378/6 "2018-03-23T15:43:17Z")

</div>

i have the feeling it has something to do with this problem here:

> [@\[solved\] Android app fails with 10RC1](https://help.nextcloud.com/t/solved-android-app-fails-with-10rc1/2441/17):
>
> little update: after digging a bit deeper, the issue is in fact the same as in [https://github.com/nextcloud/server/issues/223](https://github.com/nextcloud/server/issues/223) Related to OVH shared hosting, not the app itself… Thanks for you support anyway! slight_smile

How is your server (apache2) configured?

for the fpm I added those lines

```
<FilesMatch "\.php$">
        SetHandler "proxy:unix:/var/run/php/php7.0-fpm.sock|fcgi://localhost/"
</FilesMatch>
<Proxy "fcgi://localhost/">
</Proxy>

```

I also get this log message (but without your further lines):

> \*\*{“reqId”:“YN3JCoOUYTXYid3IVeRj”,“level”:0,“time”:“2018-03-23T15:42:27+00:00”,“remoteAddr”:“192.168.2.8”,“user”:“–”,“app”:“webdav”,“method”:“PROPFIND”,“url”:“/remote.php/webdav/”,“message”:“Exception: {"Exception":"Sabre\\DAV\\Exception\\NotAuthenticated","Message":"No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured, No ‘Authorization: Bearer’ header found. Either the client didn’t send one, or the server is mis-configured","Code":0,"Trace":"#0 [internal function]: Sabre\\DAV\\Auth\\Plugin-\>beforeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#1 \/var\/www\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call\_user\_func\_array(Array, Array)\n#2 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(466): Sabre\\Event\\EventEmitter-\>emit(‘beforeMethod’, Array)\n#3 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server-\>invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#4 \/var\/www\/nextcloud\/apps\/dav\/appinfo\/v1\/webdav.php(80): Sabre\\DAV\\Server-\>exec()\n#5 \/var\/www\/nextcloud\/remote.php(164): require\_once(‘\/var\/www\/nextcl…’)\n#6 {main}","File":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Auth\/Plugin.php","Line":168}”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”,“version”:“13.0.1.1”}  
> \*\*

---

_[View the full topic](https://help.nextcloud.com/t/client-login-fails-with-401/29378)._
