Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: No domain found in rule #209

Open
marapavelka opened this issue Jan 5, 2022 · 2 comments
Open

Warning: No domain found in rule #209

marapavelka opened this issue Jan 5, 2022 · 2 comments

Comments

@marapavelka
Copy link

When I look at the Traefik container log, I see a lot of these warnings:

time="2022-01-05T16:16:59Z" level=warning msg="No domain found in rule HostRegexp(`{host:.+}`), the TLS options applied for this router will depend on the hostSNI of each request" entryPointName=https routerName=errorpages-rtr@docker

This is my errorpages.yml file:

version: "3.9"
services:

## Traefik - Custom Error Pages
  traefik-error-pages:
    container_name: errorpages
    hostname: errorpages
    image: guillaumebriday/traefik-custom-error-pages:latest
    restart: unless-stopped
    networks:
      - traefik_proxy
    labels:
      - "traefik.enable=true"
      # HTTP Routers
      - "traefik.http.routers.errorpages-rtr.entrypoints=https"
      - "traefik.http.routers.errorpages-rtr.rule=HostRegexp(`{host:.+}`)"
      - "traefik.http.routers.errorpages-rtr.priority=1"
      # Middlewares
      - "traefik.http.routers.errorpages-rtr.middlewares=errorpages"
      - "traefik.http.middlewares.errorpages.errors.service=errorpages-svc"
      - "traefik.http.middlewares.errorpages.errors.status=401,403,404,429,500,502,503"
      - "traefik.http.middlewares.errorpages.errors.query=/{status}.html"
      # HTTP Services
      - "traefik.http.routers.errorpages-rtr.service=errorpages-svc"
      - "traefik.http.services.errorpages-svc.loadbalancer.server.port=80"

networks:
  traefik_proxy:
    external: true

Is there something wrong with it? Or should I ignore these warnings?

@htpcBeginner
Copy link
Owner

I do not use traefik error pages anymore. But looks like you are missing host informatoin below.
- "traefik.http.routers.errorpages-rtr.rule=HostRegexp({host:.+})"

@tigerblue77
Copy link

Any solution to this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants