traefik更新之后多hostname的解决方案

  |   0 评论   |   111 浏览

根据官方文档

All matchers now take a single value (except Header, HeaderRegexp, Query, and QueryRegexp which 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`)

标题:traefik更新之后多hostname的解决方案
作者:joyqat
地址:https://joyqat.top/articles/2024/05/07/1715069419194.html

评论

发表评论


取消