1. The problem I’m having:
I’ve been running caddy for a couple years now, but I have a very simple setup and still consider myself a beginner so please bear with me.
- My main use for caddy is turning all my insecure http connections to https connections. It’s not so much a security concern as it is an annoyance to get invalid cert popups and the fact that my browser won’t fill in passwords on insecure http.
- My network endpoints all use dns (server1. example. com, server2. example. com etc).
- My caddy server is p. example. com
- I currently have everything mapped by hand so server1. p. example. com points to server1. example. com
I want to know if its possible to dynamically grab the subdomain “server1” from server1. p. example. com, and forward to server1. example. com
2. Error messages and/or full log output:
N/A
3. Caddy version:
Version 2.8.4
4. How I installed and ran Caddy:
Installed using official guide
a. System environment:
Ubuntu 24.04.1