server icon indicating copy to clipboard operation
server copied to clipboard

13.0.0 RC2 nginx config gives "access forbidden by rule" GET /data/.ocdata?t=N

Open rubrik opened this issue 8 years ago • 5 comments

When I use the nginx config from https://docs.nextcloud.com/server/12/admin_manual/installation/nginx.html

I get this in my nginx error log:

2018/01/19 19:20:20 [error] 1065#1065: *1371 access forbidden by rule, client: 1.2.3.4, server: localhost, request: "GET /data/.ocdata?t=121638484183 HTTP/1.0", host: "nextcloud.example.com"

System setup in #7831 but with RC2

rubrik avatar Jan 19 '18 18:01 rubrik

That is by design. The file .ocdata is requested by the admin settings to check if acccess to the access to the data folder is denied.

juliusknorr avatar Jan 20 '18 10:01 juliusknorr

So what does it means? If the .ocdata extist then deny access?

Did the upgrade left it there? Where did it came from in the first place?

Ark74 avatar Mar 31 '18 06:03 Ark74

It is put there by Nextcloud and is used to check if the webserver config is working correctly.

juliusknorr avatar Apr 04 '18 10:04 juliusknorr

Thanks I realized it not much after I wrote the message. I thought it was related to nginx issues i had with the configuration.

Thanks for the explanation. Cheers!

Ark74 avatar Apr 04 '18 15:04 Ark74

How exactly did you solve it

itCode666 avatar Aug 30 '23 10:08 itCode666