1. Caddy version (caddy version
):
v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA=
2. How I run Caddy:
a. System environment:
docker
b. Command:
sudo docker run caddy
d. My complete Caddyfile or JSON config:
bw.mydomain.net {
reverse_proxy 192.168.1.188:8201
}
3. The problem I’m having:
I just want my dockerized services that run with an inbuilt nginx server (i.e. bitwarden, firefly3, nextcloud) to be reachable on LAN with their hostname www.bw.mydomain.net (for example with bitwarden) or www.firefly3.mydomain.net (for example with firefly3)
ALL of them are reachable if i use my phone and go to sattelite internet connection and go to those domains, however if i connect to wifi and try to reach those domains i get rerouted to a page that says “forbidden Your client does not have permission to get this page from this server.” and the url gets changed to https://bw.mydomain.net/login.htm with the /login.htm part being added on to the end of the URL being new.
this part i believe is 100% the inbuilt nginx server’s doing as i’m unaware of caddy doing anything with a /login.htm route automatically, as you can see nothing of the sort is mentioned in my caddy file
4. Error messages and/or full log output:
there’s literally no errors at all on caddy’s end, from caddy’s POV everything is working normally.
5. What I already tried:
i’m not even sure where to begin. google turns up a million results for replacing nginx with caddy or vice versa but i can’t find ANYTHING for combining them effectively. This SEEMS like a NAT hairpin issue, but it’s not, something is going wrong between caddy and the inbuilt nginx server contained in only certain dockerized services, in this example bitwarden which ships with a builtin nginx server in the docker-compose.
dockerized services, like emby, which do not contain a built in nginx component, have no issue at all, and are reachable from www.emby.mydomain.net on LAN AND WAN. i.e. on my phone with satellite internet or wifi internet.
i feel like the answer is something simple, like adding some kind of header flag or some kind of rewrite URL scheme to the config, but after trying a ton of different ones without really knowing what i’m doing, i’m just shooting in the dark so any help would REALLY be appreciated because not being able to use caddy with any self-hosted service that ships with its own webserver limits a lot of the options for me