1. Output of caddy version
:
v2.6.2
2. How I run Caddy:
a. System environment:
docker
b. Command:
docker compose up -d
c. Service/unit/compose file:
version: "3.7"
services:
caddy:
image: caddy:latest
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- /home/docker/caddy/Caddyfile:/etc/caddy/Caddyfile
- /home/docker/caddy/site:/srv
networks:
default:
name: docker-net
external: true
d. My complete Caddy config:
http://pihole.localhost {
reverse_proxy pihole:80
}
http://portainer.localhost {
reverse_proxy portainer:9000
}
http://router.localhost {
reverse_proxy 10.0.1.1:80
}
http://wap.localhost {
reverse_proxy 10.0.1.20:80
}
3. The problem I’m having:
Everything works beautifully in Safari.
Firefox redirects to https://.
Chrome doesn’t redirect to https:// but still doesn’t work.
4. Error messages and/or full log output:
Firefox gives unable to connect
Chrome gives 'connection refused'
curl -v http://pihole.localhost
* Trying 10.0.1.3:80...
* Connected to pihole.localhost (10.0.1.3) port 80 (#0)
> GET / HTTP/1.1
> Host: pihole.localhost
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
< Date: Sun, 23 Oct 2022 07:00:16 GMT
< Server: Caddy
< Server: lighttpd/1.4.59
<
* Connection #0 to host pihole.localhost left intact
5. What I already tried:
I’ve tried private mode in Firefox. Clearing history. Installing on a different machine and not signing into Firefox sync and without installing extensions.