I shutdown and restart Caddy between uses, so the config should be current. Not trying to be dunce, but to repro, set up a web server on port :81 and create a similar config. Is there something else you need from me to repro?
What kind of entries should I see in the site log that would be diff from the global log?
They would just be access logs, i.e. what each request looked like (URI, headers, etc.) and how Caddy responded (status, size, duration of the request).
I just did that because I have another instance of Caddy running on the same machine bound to ports 80 and 443 (and admin on port 2019 so I turn off admin). The port being used is not relevant.
Righto. I was just following your test config. My point is the logging works with Caddy’s server, but what about a separate service like in my use case?
Your test config is using Caddy’s self-hosted server, right? Using that config produces a log file. But, if you use a separate server (e.g., Apache), do you still get a log file?
The known results thus far are:
self-hosted server → get log
separate server/service → don’t get a log
Just trying to confirm if that is the case for you, like it is for me.
Yes, I know. Caddy is not producing a log in some cases. That is why I’m in the Caddy forum asking about it. If the Caddy config does not use the self-hosted server, it doesn’t produce a log.
Yes, it works with reverse_proxy as well. Deleted both log files, then just changed respond to reverse_proxy, started Caddy and I get both log files in the current working directory.