Question
Caddy not re-starting after changes in the Caddyfile
Caddy Service is working fine when the Caddyfile is empty
The moment we update the Caddyfile with my domain and email address, caddy.service
sudo systemctl restart caddy fails
We have tried reset-failed and start combination and everything
/etc/caddy/Caddyfile
portexcel.com {
root /home/admin/web/portexcel.com/public_html
gzip
tls nc@tharlines.com
}
https://portexcel.com is not working
The moment we empty the Caddyfile, the caddy.service is Active, Enabled and working fine
This is where our files are and we have given access to caddy appropriately
/home/admin/web/portexcel.com/public_html
We have followed the steps from here
https://www.digitalocean.com/community/tutorials/how-to-host-a-website-with-caddy-on-centos-7
Only change is our root dir is different then what is given in the instructions
Please help!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×