DISABLE!!
Why? Sounds like a terrible idea.
But you can do any of the things mentioned at the top of the page about automatic HTTPS.
for web-facing servers true, but for local-only domains (happens more than often enough e.g. in company networks) you cant really get an auto-TLS working.
Any updates on this? I removed caddy and systemctl service but it keeps redirecting to https :/
browser caches can be annoying. open dev-panel via F12, switch to network tab, check disable cache, and then enter your address normally while making sure not to choose an autocorrect from below as that usually is HTTPS.
bonus debuggability by setting preserve logs on
Edit if you have set HSTS, that will not help
A 5 year old issue is not the best place to get help.
Next time, please ask your usage questions on the Caddy community forums. We prefer to keep the GitHub issue board for bugs and feature requests. Don't forget to fill out the thread template so we can help you!
that IS certainly true.
@My1 thanks! it helped
I spent half an hour thinking that my server is doomed to be broken but after clearing cache everything went fine
you don't wanna know how often I had that, especially on redirects where you cannot just ctrl+F5 cache clearing is a royal pain
Most helpful comment
for web-facing servers true, but for local-only domains (happens more than often enough e.g. in company networks) you cant really get an auto-TLS working.