I'd like to use traefik as reverse proxy. It should handle both "naked" and sub domain.

Consider this traefik.toml:

logLevel = "DEBUG"

defaultEntryPoints = ["http"]
  address = ":80"


  backend = "vz"
    rule = "Host:volkszaehler.io"
#    [frontends.vz.routes.raspi2]
#    rule = "Host:vz.volkszaehler.io"

    url = "http://server.fritz.box"

As soon as I have two routes (subdomain + naked), the access to neither the naked nor the subdomain works. If one route is removed the other works just fine.

How can I have both naked and subdomain forwarded?

1 Answer 1


I know it's quite late answer, but in case anybody stumbles upon this. You are combining the rules with AND, so both rules need to be matched (and ofc you cant send request to both volkszaehler.io and vz.volkszaehler.io at the same time)

You want to use comma separator:

rule = "Host:volkszaehler.io,vz.volkszaehler.io"

For more info see traefik docs

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .