Skip to content

Setting default block (:80) alongside http domain triggers auto-https #4113

@iUnknwn

Description

@iUnknwn

While setting up a pihole on my local network, I noticed an odd behavior with the default site.

If I wrote the following in my caddy file, it would attempt to acquire a TLS certificate for pi.hole:

:80, http://pi.hole {
  reverse_proxy localhost:8001
}

However, if I broke the blocks into separate entries, like this:

:80 {
  reverse_proxy localhost:8001
}

http://pi.hole {
  reverse_proxy localhost:8001
}

Then it worked as expected (no tls certificate issued).

I'm currently running Caddy v2.3.0 on Ubuntu 20.04 (arm64).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions