Sorry to hear you’re facing problems
If you’re urgently looking for support to keep your business running, consider checking out our paid support options.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the following as you can (you can cut and paste this into your topic):
Nextcloud version (eg, 10.0.2): 12.0.2
Operating system and version (eg, Ubuntu 16.04): Raspbian Jessie
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.10
PHP version (eg, 5.6): 5.6.30
Is this the first time you’ve seen this error?: Yes
Can you reliably replicate it? (If so, please outline steps):
I use this apache config:
<VirtualHost *:443>
ServerName nextcloud.server.lan
DocumentRoot /var/www/nextcloud
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
Redirect 301 /.well-known/carddav /remote.php/dav
Redirect 301 /.well-known/caldav /remote.php/dav
<IfModule mod_headers.c>
Header always set "Access-Control-Allow-Headers" "Strict-Transport-Security max-age=15768000; includeSubDomains; preload"
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Headers "origin, content-type, cache-control, accept, authorization, if-match, destination, overwrite"
Header always set Access-Control-Expose-Headers "ETag"
Header always set Access-Control-Allow-Methods "GET, HEAD, POST, PUT, OPTIONS, MOVE, DELETE, COPY, LOCK, UNLOCK"
Header always set Access-Control-Allow-Credentials "true"
RewriteEngine on
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ blank.html [R=200,L,E=HTTP_ORIGIN:%{HTTP:ORIGIN}]
</IfModule>
#Options +FollowSymlinks
#AllowOverride All
#Require all granted
#Satisfy Any
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</VirtualHost>
Setup davdroid using my domain: https://nextcloud.server.lan
The issue you are facing:
I get an error on davdroid saying “405 Method Not Allowed”.
The output of your Nextcloud log in Admin > Logging:
n/a
The output of your config.php file in /var/www/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
‘instanceid’ => ‘xxx’,
‘passwordsalt’ => ‘xxx’,
‘secret’ => ‘xxx’,
‘trusted_domains’ =>
array (
0 => ‘nextcloud.server.lan’,
),
‘datadirectory’ => ‘/var/www/nextcloud/data’,
‘overwrite.cli.url’ => ‘https://nextcloud.server.lan’,
‘dbtype’ => ‘pgsql’,
‘version’ => ‘12.0.2.0’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘oc_admin2’,
‘dbpassword’ => ‘xxx’,
‘installed’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘maintenance’ => false,
‘theme’ => ‘’,
‘loglevel’ => 2,
‘logtimezone’ => ‘Asia/Manila’,
);
The output of your Apache/nginx/system log in /var/log/____
:
n/a
Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.