1. The problem I’m having:
Attempting to get Caddy server working with Cloudflared tunnel.
Previously working: Old router (ASUS AC68U), forward ports 80 & 443 to server, Caddy and my website worked fine.
Not working now: New router (UCG Fiber), Cloudflare tunnel, not exposing 80/443. Every time I try to access my site, Caddy is giving me a 403 host not allowed error.
Cloudflare tunnel has been setup and appears to be working, as Caddy logs whenever I try to access my site.
2. Error messages and/or full log output:
2025/11/10 00:51:49.158 INFO admin.api received request {“method”: “GET”, “host”: “my.domain.info”, “uri”: “/”, “remote_ip”: “127.0.0.1”, “remote_port”: “52049”, “headers”: {“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Encoding”:[“gzip, br”],“Accept-Language”:[“en-US,en;q=0.5”],“Alt-Used”:[“my.domain.info”],“Cdn-Loop”:[“cloudflare; loops=1”],“Cf-Connecting-Ip”:[“120.88.126.58”],“Cf-Ipcountry”:[“AU”],“Cf-Ray”:[“99c190472ea7d613-BNE”],“Cf-Visitor”:[“{“scheme”:“https”}”],“Cf-Warp-Tag-Id”:[“fdb2ec94-8b1c-48ea-a359-3b7cf6466c7f”],“Connection”:[“keep-alive”],“Priority”:[“u=0, i”],“Sec-Fetch-Dest”:[“document”],“Sec-Fetch-Mode”:[“navigate”],“Sec-Fetch-Site”:[“none”],“Sec-Fetch-User”:[“?1”],“Upgrade-Insecure-Requests”:[“1”],“User-Agent”:[“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0”],“X-Forwarded-For”:[“120.88.127.58”],“X-Forwarded-Proto”:[“https”]}}
2025/11/10 00:51:49.158 ERROR admin.api request error {“error”: “host not allowed: my.domain.info”, “status_code”: 403}
3. Caddy version:
Latest version from CaddyServer.com with Cloudflare plugin
4. How I installed and ran Caddy:
a. System environment:
Win 11 Pro
b. Command:
caddy run
c. Service/unit/compose file:
NA, not using Docker
d. My complete Caddy config:
{
email myEmail@email.com
}
my.domain.info {
tls {
dns cloudflare keyHere123
}
root * C:\Server\myServer\serverStuff
file_server
}