---
title: "NextCloud : access forbidden by rule GET /data/.ocdata?t="
url: https://www.cyber-neurones.org/2020/06/nextcloud-access-forbidden-by-rule-get-data-ocdatat/
date: 2020-06-10
modified: 2020-06-10
lang: fr
author: "Frederic"
description: "Pour supprimer ce type d'erreur : [error] 2239#2239: *454376 access forbidden by rule, client: 127.0.0.1, server: 127.0.0.1, request: \"GET /data/.ocdata?t=1591823240128 HTTP/1.1\", host: \"127.0.0.1\" J'ai modifié la configuration de NGINX. Sur..."
categories:
  - "Stockage"
tags:
  - "NextCloud"
word_count: 63
---

# NextCloud : access forbidden by rule GET /data/.ocdata?t=

Pour supprimer ce type d'erreur :

[error] 2239#2239: *454376 access forbidden by rule, client: 127.0.0.1, server: 127.0.0.1, request: "GET /data/.ocdata?t=1591823240128 HTTP/1.1", host: "127.0.0.1"

J'ai modifié la configuration de NGINX.
Sur les fichiers /etc/nginx/conf.d/nextcloud-local.conf & /etc/nginx/conf.d/nextcloud.conf . J'ai ajouté :

location = /data/htaccesstest.txt {
allow all;
log_not_found off;
access_log off;
}
location = /data/\.ocdata {
access_log off;
}

Pour relancer :

systemctl restart nginx.service