I run Caddy on a server (Macmini) with Ubuntu together with a domotica websolution (Domoticz). I want to use caddy to reverse proxy to Domoticz on port 443. But with a basicauth option so that I have to login and only me can use this. I have a domain and did a port forward to port 443 on this server.
Ubuntu 20.04.3 LTS
sudo systemctl restart caddy.service
Paste command here.
Paste full file contents here. Make sure backticks stay on their own lines, and the post looks nice in the preview pane.
(In this list the password is on a new line. In my Caddyfile it is on the same line. I validate the Caddyfile by caddy validate).
Paste config here, replacing this text. Use `caddy fmt` to make it readable. DO NOT REDACT anything except credentials. LEAVE DOMAIN NAMES INTACT. Make sure the backticks stay on their own lines.
Problem: I do not get the basicauth login screen. The reverse proxy goes straight to the web application (Domoticz ) without giving a loginscreen.
I have tried also to install the apache2-utils but this didn’t help.