There’s some details missing here. Are you sure you’re using the right config? Because the errors you posted don’t match the config you say you’re using.
How did you install Caddy? How exactly are you running Caddy? From what directory are you trying to run it?
I believe the confusion came because I changed something in Caddyfile by mistake between the commands hence mixed errors above as I removed # from #root * /usr/share/caddy.
Anyways I did something and now I do not even have access to caddy page to continue setup
2022/02/10 06:34:51.744 INFO using adjacent Caddyfile
run: adapting config using caddyfile: subject does not qualify for certificate: '}'
I put in caddy start I get the following error:
2022/02/10 06:36:15.975 INFO using adjacent Caddyfile
run: adapting config using caddyfile: subject does not qualify for certificate: '}'
start: caddy process exited with error: exit status 1
Directory:
/etc/caddy/Caddyfile
/var/www/html
One more question I do not need to create a config.json since I have a Caddyfile, am I correct