Problems serving Angular site using caddy v2

1. Caddy version (caddy version):


2. How I run Caddy:

caddy start --watch

a. System environment:


3. The problem I’m having:

I am new to caddy and I want to host an angular webapp using caddy 2 but I am not able to follow the documentation to get it working. Site is up as in I can see a blank page in browser when I enter my domain name but app is not getting loaded. I am using following caddyfile. Any help on how can I get it working?

host {
    root * /home/abc/site
    encode zstd gzip
    log stdout

You’re missing the file_server directive. Caddy v2 doesn’t enable a file server by default.

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