Import directive: necessary permission for folder containing vhosts?

My Caddyfile consists of an import directive like import /vhosts/*
I have set up Caddyserver according to these instructions:
and therefore in analogy I have set the owner of the vhosts-directory and its containing files as www-data:www-data and the mod to 444.

When starting caddy I get the following error message:

/etc/caddy/Caddyfile:1 - Parse error: Could not import /etc/caddy/vhosts/ open /etc/caddy/vhosts/ permission denied

What is the proper permission to my vhosts folder and its containing vhost-files?

Seems to work with recursive permission 544 on my folder vhosts.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.