Caddy server start failed

Im install and set up caddy server but i see after systemctl status caddy.service -l

caddy failed … error :///

My caddy is on ubuntu 18.04 across vmware workstation 15 PRO

My CaddyFile

    behanicko.dev {
        tls admin@example.com
        root /var/www/behanicko.dev
        gzip
    }

in behanicko.dev i have index.html

Result in browser :
localhost:2015
404 Not Found

Hi @petr_friede, welcome to the Caddy community.

Can you post the output of the systemd logs?

Could you also run curl -ILX GET localhost:2015 and post the output of that?

At a glance, your Caddyfile looks good.

What do you get if you go to

http://behanicko.dev/index.html

or

http://behanicko.dev

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