Zum Inhalt

Schlagwort: Apache

Nextcloud Client Cannot Connect to Server

I’ve had a strange problem with a very hard to find solution after I set up my second Nextcloud Server, version 12.0.3. The Webinterface was working fine but the Nextcloud client couldn’t connect to the server.

In the Nextcloud log files the following error message was displayed:
Sabre\DAV\Exception\NotAuthenticated: No public access to this resource., 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, No ‚Authorization: Basic‘ header found. Either the client didn’t send one, or the server is misconfigured

[internal function] Sabre\DAV\Auth\Plugin->beforeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/vhosts/vault111.de/nextcloud.vault111.de/3rdparty/sabre/event/lib/EventEmitterTrait.php – line 105: call_user_func_array(Array, Array)
/var/www/vhosts/vault111.de/nextcloud.vault111.de/3rdparty/sabre/dav/lib/DAV/Server.php – line 466: Sabre\Event\EventEmitter->emit(‚beforeMethod‘, Array)
/var/www/vhosts/vault111.de/nextcloud.vault111.de/3rdparty/sabre/dav/lib/DAV/Server.php – line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/vhosts/vault111.de/nextcloud.vault111.de/apps/dav/lib/Server.php – line 258: Sabre\DAV\Server->exec()
/var/www/vhosts/vault111.de/nextcloud.vault111.de/apps/dav/appinfo/v2/remote.php – line 33: OCA\DAV\Server->exec()
/var/www/vhosts/vault111.de/nextcloud.vault111.de/remote.php – line 162: require_once(‚/var/www/vhosts…‘)
{main}

The problem could be solved by adding the following line in the Apache vhost config:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Install Seafile 5.1 on Debian 7.10 with Apache 2.2 and Plesk 10.5

Installing Seafile on a system that is maintained by Plesk can be a little bit tricky, especially if you are using Debian 7 with Apache 2.2. Therefore I wrote a small tutorial which will explain how to install seafile on a new created subdomain.

Requirements

Debian 7.10
Plesk 10.5
Domain set up with valid SSL Certificate

http zu https Weiterleitung über vhost einrichten

Wenn ihr nicht wollt, dass eure Seiten über http sondern nur über https erreichbar sind, könnt ihr einfach eine Rewrite Rule in der vhost des Apache eintragen, die dann automatisch immer auf https weiterleitet. Diese Rule kann so aussehen:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}