3. The problem I’m having: First of all, I am very new to all of this and really have no idea if this is possible.
I’m running Caddy V1 on my main server at home (working just fine). I have another server (on the same Lan) which manages media etc. My query is: Can I serve the secondary (Media) server from the main server via the Caddyfile or must I run a second instance of Caddy on the second server but using the same domain/sub domain - eg mainserver.domain.com on one host and 2ndserver.domain.com on the other host (don’t really want to pay for another domain name). If so could you give advice on how to set up the caddyfile(s) please
Caddy can manage the certificates for both sites. Note that the traffic between your servers will be unencrypted. Be aware that if someone has access to your home network, then they could sniff the requests between your two servers. In practice this usually isn’t an issue, just don’t give your Wi-Fi password to people you don’t trust!
Yeah, I just assumed a posix path. You can use a windows path too.
You said you already have a working Caddy instance on your main server, you’ll just need to add a site block to proxy to your other server, and your existing site should stay working the same.