Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Commit a270242

Browse files
committed
nginx improvements
Removed caret and added equal
1 parent c55639f commit a270242

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

admin_manual/installation/nginx_examples.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ your nginx configuration to suppress them::
5252
access_log off;
5353
}
5454

55+
If you're seeing following recurring messages in your error logfile:
56+
`access forbidden by rule, client: xx.xx.xx.xx, server: your_server, request: "GET /data/.ocdata`
57+
This access is ok and used by ownCloud for internal processes. Add this section
58+
to your nginx configuration if you want to suppress them::
59+
60+
location = /data/\.ocdata {
61+
access_log off;
62+
}
63+
5564
JavaScript (.js) or CSS (.css) files not served properly
5665
========================================================
5766

admin_manual/installation/nginx_owncloud_8x.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ the examples, as long lines may be broken for page formatting.
7474
}
7575

7676
location ~ ^/(build|tests|config|lib|3rdparty|templates|data)/ {
77-
deny all;
77+
return 404;
78+
break;
7879
}
7980

8081
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
81-
deny all;
82+
return 404;
83+
break;
8284
}
8385

8486
location / {

admin_manual/installation/nginx_owncloud_9x.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ your nginx installation.
9292
}
9393
9494
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
95-
deny all;
95+
return 404;
96+
break;
9697
}
9798
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
98-
deny all;
99+
return 404;
100+
break;
99101
}
100102
101103
location ~
@@ -231,10 +233,13 @@ your nginx installation.
231233
232234
location ~
233235
^/owncloud/(?:build|tests|config|lib|3rdparty|templates|data)/ {
234-
deny all;
236+
return 404;
237+
break;
235238
}
236239
location ~ ^/owncloud/(?:\.|autotest|occ|issue|indie|db_|console) {
237-
deny all;
240+
return 404;
241+
break;
242+
238243
}
239244
240245
location ~
@@ -286,4 +291,4 @@ your nginx installation.
286291
}
287292
}
288293
}
289-
294+

0 commit comments

Comments
 (0)