I’m trying to run caddy with two subdomain in a single caddy file. But i keep end up getting error while starting the caddy. So please help me out to sort this issue, Just help me to correct me this caddy file format, what am i doing wrong in here.
Done thanks for the help, updated the config code in the post. At first i thought you are helping me to add those code in caddy file. Anyway, waiting for right answer to get my issue sorted.
You should use tabs/spaces to indent your config, otherwise it becomes nearly impossible to see where the braces should go. Just like any programming language.
You have not filled out the help template, so the only detail I have about your system environment / install is what I can see in the screenshots. It looks like the Caddy binary you’re running via systemd is in /usr/bin/caddy.
You can double-check whether the http.handlers.mercure module is installed by running:
/usr/bin/caddy list-modules
If the module is not present, you will need to follow the xcaddy / download page links provided in the documentation to compile Caddy with the module installed before you can use it.
Well, i have just pumped up to the latest version of 1.16, now xcaddy works. But i get another weird issue, XCADDY says, it has installed the module “mercure”, but still can’t find it on the module list?
You need to move the caddy binary to /usr/bin/caddy after building it. Doesn’t look like you did that. By default, it outputs the binary to your current directory.