1. Caddy version (caddy version
):
Windows amd64
v2.2.0 h1:sMUFqTbVIRlmA8NkFnNt9l7s0e+0gw+7GPIrhty905A=
2. How I run Caddy:
a. System environment:
Windows Server 2019, standalone
b. Command:
caddy start
c. Service/unit/compose file:
n/a
d. My complete Caddyfile or JSON config:
Caddyfile:
/test
reverse_proxy localhost:8082
autosave.json:
{
"apps":{
"http":{
"servers":{
"srv0":{
"listen":[":443"],
"routes":[
{
"handle":[{
"handler":"subroute",
"routes":[{
"handle":[{
"handler":"reverse_proxy",
"upstreams":[{
"dial":"localhost:8082"
}]
}]
}]
}],
"match":[{
"path":["/test"]}],
"terminal":true
}
]
}
}
}
}
}
3. The problem I’m having:
Before I start please know I am a beginner. I have given Caddy a try, with the intention of setting up a reverse proxy. It redirected http > https, which I didn’t necessarily want. I decided to stop using Caddy, but my http requests are still being redirected to https, even when Caddy is not running. This has broken what I had before, and I don’t know how to turn it off. Now, the only way I can access what I have on http://localhost
is by using the ip address - http://192.168.0.20
.
I would like to just go back to before I tried caddy, but I don’t know what’s changed or how to fix it. I have literally just put the .exe in a folder with the basic caddyfile shown above, and started it, found it wasn’t for me, and tried to remove it.
4. Error messages and/or full log output:
5. What I already tried:
I have run caddy stop
, followed by caddy untrust
to remove the certificate, then removed the files from C:\Users\<user>\AppData\Caddy\
, but the https redirect persists.