Qortora · Search · Indexed page

caddy.communityFetched 2026-08-17T16:28:19Z

Make sure redirected to https - Help - Caddy Community

hi all, in my caddy file i have this and i just want to make sure its 100% being redirected to https and not using http at the end of my file “/etc/caddy/Caddyfile” ive appended this to it, (i didnt put it in between t…

Open original source · Full cached text

Make sure redirected to https - Help - Caddy Community = 40rem)" rel="stylesheet" data-target="chat_desktop" /> = 40rem)" rel="stylesheet" data-target="discourse-reactions_desktop" /> = 40rem)" rel="stylesheet" data-target="poll_desktop" /> = 40rem)" rel="stylesheet" data-target="desktop_theme" data-theme-id="1" data-theme-name="caddy custom"/> Make sure redirected to https Help robertkwild (robertkwild) August 14, 2026, 10:09pm 1 hi all, in my caddy file i have this and i just want to make sure its 100% being redirected to https and not using http at the end of my file “/etc/caddy/Caddyfile” ive appended this to it, (i didnt put it in between the 80 curly brackets) domain.com redir /jellyfin /jellyfin/ reverse_proxy /jellyfin/* 127.0.0.1:8096 im pretty sure its working as when i check it out using mobile with wifi turned off and go to “domain.com/jellyfin” it auto redirects me to https as it puts it infront of it thanks, rob techjedialex (Alex S.) August 15, 2026, 8:00am 2 Serving all sites via HTTPS by default is kind of the main selling point of Caddy. HTTP is always redirected to HTTPS, in contrast to Apache/nginx/lighttpd where such a redirect must always be explicitly configured. In fact, explicitly configuring it is so ingrained in admins’ minds that some of them like configuring it in everything internet-facing capable of doing so, so there are times I see Caddy configs with a redir statement to :443 in a :80 server block. It’s not wrong, it’s just.. superfluous. robertkwild (robertkwild) August 15, 2026, 7:31pm 3 so caddy just auto redirects anything to https, even if you dont specify it in your command? what does the redir command do please, is that specifying the redir to https? timelordx (timelordx) August 16, 2026, 3:35am 4 Yes, unless you tell it not to: No, in your case, redir redirects /Jellyfin to /jellyfin/ there’s no protocol explicitly specified. However, when you’re accessing /jellyfin, you’re most likely already on HTTPS thanks to Caddy’s default behaviour, so the redirect preserves that for /jellyfin/ as well. You can use redir to redirect to any target, HTTP or HTTPS. But if that target is Caddy with its default behaviour, you’ll eventually end up with HTTPS.