You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let me start by saying that I am not sure if this issue is more applicable to the server or desktop client repositories, so I am starting here.
When I restrict root directory access (/var/www; require all denied) within and Apache and subsequently open the Nextcloud directory access (/var/www/nextcloud; require all granted) with the same directives as applied to the root directory, I get tons of 403 errors to my install. These 403 errors are all coming from my many clients and the web interface. What makes this harder to troubleshoot is that everything actually works as expected: clients all sync properly, and can access the server. I can access the server from the web interface without issue. The server logs are clean and do not show any errors related to this behavior. Client logs all show correct routing requests to the /nextcloud directory.
directory paths that are 403’d:
/var/www/apps
/var/www/cloud
/var/www/dav
/var/www/204
/var/www/avatar
etc…
Many of these directories that are 403'd do not actually even exist, even in /var/www/nextcloud. The vast majority of the 403'd directories are /dav, /cloud, and /apps
The clients are indeed querying the correct URLs as I’ve taken a log dump of the Windows client. 2023-03-02 16:22:12:422 [ info nextcloud.sync.networkjob.jsonapi C:\Users\sysadmin\AppData\Local\Temp\2\windows-13476\client-building\desktop\src\libsync\networkjobs.cpp:829 ]: JsonApiJob of QUrl("https://xxx.xxx.xxx/nextcloud/ocs/v1.php/cloud/user?format=json") FINISHED WITH STATUS "OK"
There are parallel 403s that align with these requests. In the case of the above, it looks like this: Mar 02 16:21:46 DietPi apache2[1947977]: [authz_core:error] [pid 1947977:tid 140460974655232] [client 192.168.1.4:53370] AH01630: client denied by server configuration: /var/www/cloud
Steps to reproduce
Restrict root directory (/var/www) access (require all denied) in Apache config, opening (require all granted) only directories with running services (/var/www/nextcloud).
journalctl -f
See tons of 403 errors where my internal IPs are getting denied from certain Nextcloud directories that do not exist. E.G. [authz_core:error] [pid 222383:tid 140497423161088] [client X.X.X.X:55662] AH01630: client denied by server configuration: /var/www/dav
Expected behavior
No 403 errors should appear for clients accessing the Nextcloud server
Installation method
Other Community project
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Same issue on ubuntu 22.04, apache 2.4.57, php fpm 8.2.10
nextcloud 27.1.1 installed in subdirectory, let's say domain.tld/nextcloud/
with minimal configuration of document root directory (access is denied at a higher level) :
<Directory /var/www/domain.tld>
AllowOverride All
</Directory>
apache reports many 403 when using app or browsing directly to https://domain.tld/dav : [Wed Oct 04 22:27:07.351600 2023] [authz_core:error] [pid 95039:tid 140496124933696] [client 2a01:xx:xx:xx:xx:58993] AH01630: client denied by server configuration: /var/www/domain.tld/dav
Bug description
Let me start by saying that I am not sure if this issue is more applicable to the server or desktop client repositories, so I am starting here.
When I restrict root directory access (/var/www; require all denied) within and Apache and subsequently open the Nextcloud directory access (/var/www/nextcloud; require all granted) with the same directives as applied to the root directory, I get tons of 403 errors to my install. These 403 errors are all coming from my many clients and the web interface. What makes this harder to troubleshoot is that everything actually works as expected: clients all sync properly, and can access the server. I can access the server from the web interface without issue. The server logs are clean and do not show any errors related to this behavior. Client logs all show correct routing requests to the /nextcloud directory.
I have made extensive issue reports about this behavior in the Nextcloud community and in the DietPi (OS) community without resolution.
directory paths that are 403’d:
/var/www/apps
/var/www/cloud
/var/www/dav
/var/www/204
/var/www/avatar
etc…
Many of these directories that are 403'd do not actually even exist, even in /var/www/nextcloud. The vast majority of the 403'd directories are /dav, /cloud, and /apps
The clients are indeed querying the correct URLs as I’ve taken a log dump of the Windows client.
2023-03-02 16:22:12:422 [ info nextcloud.sync.networkjob.jsonapi C:\Users\sysadmin\AppData\Local\Temp\2\windows-13476\client-building\desktop\src\libsync\networkjobs.cpp:829 ]: JsonApiJob of QUrl("https://xxx.xxx.xxx/nextcloud/ocs/v1.php/cloud/user?format=json") FINISHED WITH STATUS "OK"
There are parallel 403s that align with these requests. In the case of the above, it looks like this:
Mar 02 16:21:46 DietPi apache2[1947977]: [authz_core:error] [pid 1947977:tid 140460974655232] [client 192.168.1.4:53370] AH01630: client denied by server configuration: /var/www/cloud
Steps to reproduce
Expected behavior
No 403 errors should appear for clients accessing the Nextcloud server
Installation method
Other Community project
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Using DietPi OS for automated install for Nextcloud. I have raised this issue with them first: https://dietpi.com/forum/t/nextcloud-authz-core-error-ah01630-client-denied-by-server-configuration-var-www-apps-dav-cloud-etc/15778/11
The text was updated successfully, but these errors were encountered: