Upload .tgz file fails

Nextcloud version 15.0.7
Operating system Red Hat
PHP version 7.1

I’ve installed Nextcloud via CPanel on my site host. It’s mostly fine, but I’ve just tried to upload a tarball (.tgz file). The file is about 20kB, so not very big, but it refuses to load either by the client of through the browser. The log reveals an error:

Server replied “405 Method Not Allowed” to “PUT https://…/nextcloud/index.php/apps/files”…

Does anyone know what the problem could be? Thanks!

Looks like a security feature that blocks certain file extensions. Could be in the apache config, or somewhere else which is more a question for the cpanel and/or RH community (SELinux?).