Server won’t write files starting with a dot in a Nextcloud installation

Hello,
My HestiaCP server won’t write files starting with a dot to a Joplin directory created at the root of a WebDAV server for a Nextcloud installation.

What should I do?

Hi,

Create a new proxy template and remove the block:

        location ~ /\.(?!well-known\/|file) {
                deny all;
                return 404;
        }

Once done, assign the new proxy template to your Nextcloud site.

Example using user test, domain nextcloud.example.com and new template name nextcloud:

cd /usr/local/hestia/data/templates/web/nginx/
cp default.tpl nextcloud.tpl
cp default.stpl nextcloud.stpl
sed -i '/well-known.*file/,/}/d' nextcloud.tpl nextcloud.stpl
v-change-web-domain-proxy-tpl test nextcloud.example.com nextcloud
systemctl restart nginx
1 Like

Thank you a lot. Have a nice evening :slight_smile:

1 Like