1. The problem I’m having:
hi, all… I’m trying to run Caddy on a raspberry pi, with the home.azthir-terra.com. I also want to run services on my mac, at mac.azthir-terra.com. The service on the mac runs on port 50000. I’m using Route53 to resolved the DNS. I can’t seem to figure out how to make the mac subdomain go to the mac and everything else go to the pi.
Feel like this should be fairly typical thing to do. But not sure what I’m doing wrong.
2. Error messages and/or full log output:
when I use the command: sudo service caddy restart
, I get the following error:
Job for caddy.service failed because the control process exited with error code.
See "systemctl status caddy.service" and "journalctl -xeu caddy.service" for details.
the first command returns:
Loaded: loaded (/lib/systemd/system/caddy.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Wed 2023-10-25 14:02:57 EDT; 3min 46s ago
Docs: https://caddyserver.com/docs/
Process: 2011 ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile (code=exited, status=1/FAILURE)
Main PID: 2011 (code=exited, status=1/FAILURE)
CPU: 130ms
the second command returns:
no entries
3. Caddy version:
v2.7.5
4. How I installed and ran Caddy:
I installed it with this command: sudo apt install caddy -y
a. System environment:
Raspberry Pi
MacOS M1 Mini 14.1
AWS Route53
b. Command:
sudo service caddy restart
d. My complete Caddy config:
{
debug
}
{
default_sni 192.168.4.120
}
192.168.4.120 {
tls internal
reverse_proxy 192.168.5.86:30000
encode zstd gzip
}
mac.azthir-terra.com {
reverse_proxy 192.168.5.86:30000
encode zstd gzip
}