Problems with the .htccess file after updating to 29.0.0

Nextcloud version _29.0.0
Operating system and version _DietPi v9.3.0
Apache or nginx version _ Apache/2.4.59 (Debian)

PHP version _PHP 8.2.18

The issue you are facing:
After updating nextcloud to 29.0.0 i see this error message

Your web server is not properly set up to resolve `.well-known` URLs, failed on: `/.well-known/webfinger`

Is this the first time you’ve seen this error? (Y/N): Yes

After following the documentation and paste these lines to my .haccess file


<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav [R=301,L]
  RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav [R=301,L]
  RewriteRule ^\.well-known/webfinger /nextcloud/index.php/.well-known/webfinger [R=301,L]
  RewriteRule ^\.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo [R=301,L]
</IfModule>

there still is the error message

thank you in advance

i have the same error too

I am running Nextcloud App in Truenas Scale, and I am seeing a similary .htaccess error in the Overview tab when I login into Nextcloud.

" * Your data directory and files are probably accessible from the internet. The .htaccess file is not working. It is strongly recommended that you configure your web server so that the data directory is no longer accessible, or move the data directory outside the web server document root."

This has only occurred since updating to Nextcloud 29.0.0.
I looked at some forums about having to edit the apache2.conf to resolve the issue, but since Nextcloud in running in Kubernates Docker container so that any changes I make would be lost when the service is restarted.

For reference the solution appears to be to edit /etc/apache2/apache2.conf and ensure the following lines:

I am running Nextcloud App in Truenas Scale, and I am seeing a similary .htaccess error in the Overview tab when I login into Nextcloud.

" * Your data directory and files are probably accessible from the internet. The .htaccess file is not working. It is strongly recommended that you configure your web server so that the data directory is no longer accessible, or move the data directory outside the web server document root."

This has only occurred since updating to Nextcloud 29.0.0.
I looked at some forums about having to edit the apache2.conf to resolve the issue, but since Nextcloud in running in Kubernates Docker container so that any changes I make would be lost when the service is restarted.

For reference the solution appears to be to edit /etc/apache2/apache2.conf and ensure the following lines:

<Directory /var/www/nextcloud>
AllowOverride All

<Directory /var/www/nextcloud>
      AllowOverride All
</Directory>

I have the same error and my data directory is not within the web server document root.
Edit: My problem seems to be related to #45087.

Archlinux just update Nextcloud to 29. I too am hit by this issue. I’ve tried configuring httpd.conf and the .htaccess file per the documentation link and the error persists.

note: caldav and carddav with similar rewrites are fine, it’s just webfinger.

The additions include the override all, e.g.

<Directory "/srv/http/htdocs/nextcloud">
  AllowOverride All
  <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav [R=301,L]
    RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav [R=301,L]
    RewriteRule ^\.well-known/webfinger /nextcloud/index.php/.well-known/webfinger [R=301,L]
    RewriteRule ^\.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo [R=301,L]
  </IfModule>
  Require all granted
</Directory>

In fact, caldav and carddav are handled fine in the default .htaccess, so adding or removing the directory config for nextcloud in httpd.conf makes no difference.

App versions:

  Nextcloud : Hub 8 (29.0.0)
  Archlinux : 6.9.1-arch1-1
  Apache    : 2.4.59 (Unix)
  OpenSSL   : 3.3.0
  PHP       : 8.2.19

How do we fix this?

Same problem here after update to 29.0.1
:face_with_diagonal_mouth:

I have this in my apache conf and it is no longer working:

Redirect 301 /.well-known/carddav /cloud/remote.php/dav
Redirect 301 /.well-known/caldav /cloud/remote.php/dav
Redirect 301 /.well-known/webfinger /cloud/index.php/.well-known/webfinger
Redirect 301 /.well-known/nodeinfo /cloud/index.php/.well-known/nodeinfo

how to fix? I tried according to documentation in .htaccess and in conf but no change.

always: Your web server is not properly set up to resolve .well-known URLs, failed on: /.well-known/webfinger