Caddy server start failed


(Petr Friede) #1

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


(Matthew Fay) #2

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.


(Toby Allen) #3

What do you get if you go to

http://behanicko.dev/index.html

or

http://behanicko.dev