I am trying to setup the server with on_demand requests, for each host, which connects to it.
As described in the docs, it will be possible to add a whitelist to possible hosts, which I will integrate afterwards, to make sure this wont be abused.
But for now, I wanted to get this to work. The backend service, to which the requests are proxied, can handle the requests for all used ports.
When I log on to example.my-domain.com, the browser tells me, the used certificate is not trusted.
When I ignore this, the following string is returned:
This is default server vhost. There is nothing here.
Your site address is * which matches hostnames with a single label, like localhost or foo, but not example.com. To match all sites, don’t specify a hostname. Instead, do something like :443. This is described in the docs: Caddyfile Concepts — Caddy Documentation
This is default server vhost. There is nothing here.
That’s not a Caddy message, so your reverse proxy is working at least.
that’s strange, as my current config is similar to your suggestion.
I just made it a bit cleaner to post it, and without reload, it now worked (as I wanted to paste curl outputs).
So I’ll continue for now and test it again later. Perhaps it’s getting wrong again, or I’ll get aware what I am missing.