traefik更新之后多hostname的解决方案
根据官方文档,
All matchers now take a single value (except
Header,HeaderRegexp,Query, andQueryRegexpwhich take two) and should be explicitly combined using logical operators to mimic previous behavior.
需要将原有的
1- traefik.http.routers.service1.rule=Host(`joyqat.top`, `www.joyqat.top`)
改为
1- traefik.http.routers.service1.rule=Host(`joyqat.top`) || Host(`www.joyqat.top`)