Hey,
unfortunately i can’t edit the Nginx documentation (Unofficial (Community) ) anymore as it is locked. Hope some one of the @moderators team could do the following edits to that posting:
Today i have learned that the next ownCloud version (i think 10.5.1 or 10.6.0) will block some additional files for security reasons with https://github.com/owncloud/core/pull/37735.
I think the same could / should be applied to the nginx community configuration:
For the “ownCloud in the web root of Nginx” config the following:
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
return 404;
}
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
return 404;
}
should be replaced with:
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|changelog|data)/ {
return 404;
}
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console|core/skeleton/) {
return 404;
}
location ~ ^/core/signature\.json {
return 404;
}
and for the “ownCloud in a subdirectory of Nginx” config the following:
location ~ ^/owncloud/(?:build|tests|config|lib|3rdparty|templates|data)/ {
return 404;
}
location ~ ^/owncloud/(?:\.|autotest|occ|issue|indie|db_|console) {
return 404;
}
should be replaced with:
location ~ ^/owncloud/(?:build|tests|config|lib|3rdparty|templates|changelog|data)/ {
return 404;
}
location ~ ^/owncloud/(?:\.|autotest|occ|issue|indie|db_|console|core/skeleton/) {
return 404;
}
location ~ ^/owncloud/core/signature\.json {
return 404;
}