Caddy confusion (concern)

1. Caddy version (caddy version):


2. How I run Caddy:

Windows 10

a. System environment:

b. Command:

caddy start

d. My complete Caddyfile or JSON config:
    reverse_proxy /sonarr*  http://localhost:8989
	reverse_proxy /radarr*  http://localhost:7878
	reverse_proxy /bazarr*  http://localhost:6767
	reverse_proxy /emby*  http://localhost:8096

3. The problem I’m having:


I managed to sucessfully reverse proxy several programs that are hosted with ddns but I have one confusion. I can access web interfaces of those programs(sonarr,radarr,emby…) securely with https://domain_name/subpaths but I can also access them with which is not protected. Is it supposed to be like this or is there a way to disable/block access to http address which is not protected.

Edit: I think I have figured it out. I should disable port forwarding for every port except 443 and 80 which Caddy uses?

1 Like

Yep that’s correct. See the following:

Also as an aside, I typically recommend using subdomains for proxying to your individual services. Many apps don’t behave well when proxied under a subpath.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.