1. Caddy version (caddy version
): 2.4.6
2. How I run Caddy: Running caddy in an LXD container.
a. System environment:
Ubuntu server 20.04, running LXD 4.0.4
b. Command:
caddy run and caddy reload
c. Service/unit/compose file:
N/A
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
www.example.com {
root * /usr/share/caddy
}
cctv.example.com {
reverse_proxy 192.168.1.45:8080
}
cloud.example.com {
reverse_proxy 192.168.1.235:80
}
mail.example.com/mail {
reverse_proxy 192.168.1.230:443
}
3. The problem I’m having:
The issue I am having, is 1: The first www.example.com entry does not load the basic index.html file in the root path specified, just gives me a blank page.
Problem #2:
The roundcube webmail server will not load correctly. It loads a blank page as well, but shows the roundcube icon in the tab of chrome.
May be a problem that I have only been using caddy for a total of 45 minutes so far?
4. Error messages and/or full log output:
No error messages or log to provide yet. Trying to figure out how to access the log, not even sure it is producing one since I did not use the log directive. Sorry!
5. What I already tried:
Have tried changing the uri, removing it, just adding /, also tried to get it to proxy to port 80, nothing helps. I have also changed a setting in the nginx config on the mail server to have it listen on port 80.
Tried adding https:// to the proxy path, so not sure if this is a syntax error on my part, or that I need to add more directives to the Caddyfile. The other sites behind Caddy are working great so far. Have yet to test the CalDAV/WebDAV features yet, but trying to get them all working for a baseline to work from.
Thanks!