Support intro
Sorry to hear you’re facing problems
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
Nextcloud version (eg, 20.0.5): 27.0.0
Operating system and version (eg, Ubuntu 20.04): 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52
PHP version (eg, 7.4): 8.1
The issue you are facing:
im getting an error on my admin page. * Your web server is not properly set up to resolve “/ocm-provider/”. This is most likely related to a web server configuration that was not updated to deliver this folder directly. Please compare your configuration against the shipped rewrite rules in “.htaccess” for Apache or the provided one in the documentation for Nginx at it’s documentation page . On Nginx those are typically the lines starting with “location ~” that need an update.
- Your web server is not properly set up to resolve “/.well-known/webfinger”. Further information can be found in the documentation
.
- Your web server is not properly set up to resolve “/.well-known/nodeinfo”. Further information can be found in the documentation
.
- Your web server is not properly set up to resolve “/.well-known/caldav”. Further information can be found in the documentation
.
- Your web server is not properly set up to resolve “/.well-known/carddav”. Further information can be found in the documentation
.
Is this the first time you’ve seen this error? (Y/N):Y
this is my .htaccess
SetEnvIfNoCase ^Authorization$ “(.+)” XAUTHORIZATION=$1
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
SetEnvIfNoCase Authorization “(.+)” HTTP_AUTHORIZATION=$1
SetEnvIfNoCase ^Authorization$ “(.+)” XAUTHORIZATION=$1
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
# Avoid doubled headers by unsetting headers in "onsuccess" table,
# then add headers to "always" table: https://github.com/nextcloud/server/pull/19002
Header onsuccess unset Referrer-Policy
Header always set Referrer-Policy "no-referrer"
Header onsuccess unset X-Content-Type-Options
Header always set X-Content-Type-Options "nosniff"
Header onsuccess unset X-Frame-Options
Header always set X-Frame-Options "SAMEORIGIN"
Header onsuccess unset X-Permitted-Cross-Domain-Policies
Header always set X-Permitted-Cross-Domain-Policies "none"
Header onsuccess unset X-Robots-Tag
Header always set X-Robots-Tag "noindex, nofollow"
Header onsuccess unset X-XSS-Protection
Header always set X-XSS-Protection "1; mode=block"
SetEnv modHeadersAvailable true
Header set Cache-Control "max-age=15778463, immutable"
Header set Cache-Control "max-age=15778463"
Let browsers cache WOFF files for a week
<FilesMatch “.woff2?$”>
Header set Cache-Control “max-age=604800”
AddDefaultCharset utf-8
Options -Indexes
DO NOT CHANGE ANYTHING ABOVE THIS LINE
ErrorDocument 403 /index.php/error/403
ErrorDocument 404 /index.php/error/404
Options -MultiViews
RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
RewriteCond %{REQUEST_FILENAME} !.(css|js|mjs|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav|wasm|tflite)$
RewriteCond %{REQUEST_FILENAME} !/core/ajax/update.php
RewriteCond %{REQUEST_FILENAME} !/core/img/(favicon.ico|manifest.json)$
RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status).php
RewriteCond %{REQUEST_FILENAME} !/ocs/v(1|2).php
RewriteCond %{REQUEST_FILENAME} !/robots.txt
RewriteCond %{REQUEST_FILENAME} !/(ocs-provider|updater)/
RewriteCond %{REQUEST_URI} !^/.well-known/(acme-challenge|pki-validation)/.*
RewriteCond %{REQUEST_FILENAME} !/richdocumentscode(_arm64)?/proxy.php$
RewriteRule . index.php [PT,E=PATH_INFO:$1]
RewriteBase /
SetEnv front_controller_active true
DirectorySlash off
this is my default-ssl.conf
ServerName www.server.com ServerAlias www.server.com SSLEngine On SSLCertificateFile /etc/ssl/certs/www.server.com/.crt SSLCertificateKeyFile /etc/ssl/certs/ssl.key SSLCertificateChainFile /etc/ssl/cert/www.server.com.ca-bundle Protocols h2 http/1.1 DocumentRoot /var/www/nextcloud
<Directory /var/www/nextcloud>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
DirectoryIndex index.php
</Directory>
<FilesMatch ".php$">
SetHandler "proxy:unix:/var/run/php/php8.1-fpm.sock|fcgi://localhost/"
</FilesMatch>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
<IfModule mod_dav.c>
Dav off
</IfModule>
RewriteEngine On
RewriteRule ^\.well-known/carddav https://%{www.server.com}/nextcloud/remote.php/dav [R=301,L]
RewriteRule ^\.well-known/caldav https://%{www.server.com}/nextcloud/remote.php/dav [R=301,L]
RewriteRule
^.well-known/webfinger https://%{www.server.com}/nextcloud/index.php/.well-known/webfinger [R=301,L]
RewriteRule ^.well-known/nodeinfo https://%{www.server.com}/nextcloud/index.php/.well-known/nodeinfo [R=301,L]
RewriteRule ^ocm-provider/?$ https://%{www.server.com}/nextcloud/index.php [QSA,L]
RewriteRule ^/.well-known/host-meta /nextcloud/public.php?service=host-meta [QSA,L]
RewriteRule ^/.well-known/host-meta.json /nextcloud/public.php?service=host-meta-json [QSA,L]
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>