Getting 404 for default domain caddy server

I am pretty new to caddy and I mainly want to use it for on demand ssl for custom domain.

I create a droplet on digitalocean with Caddy Server 2.0 and this my config file -

  root * /var/www/html

SSL have been applied to my domain though the I am getting 404 when I visit my domain.

I could really use some help!

If you’re complete unfamiliar with the format of the Caddyfile I would highly suggest ready this

The structure is important to know so you can get the directives, sub-directives, marchers etc in the correct spots.

Throw a browse after the file_server and see if it works.

file_server browse

Also check out the below link for more on file_server

This topic was automatically closed after 30 days. New replies are no longer allowed.