Change dashboard API path

Traefic version: 2.3.1
Using docker-compose

Architecture:

  1. All incoming traffic on port 80 goes to Traefik.
  2. If incoming request contains "PathPrefix(/api)" it goes to Web server (not-dockerized) listening on port 81.

Working configuration as example:

## DYNAMIC CONFIGURATION for req routing to local web server
http:
  routers:
    to-local-ip:
      rule: "(Host(`example.domain.com`) || Host(`10.2.2.1`)) && PathPrefix(`/api`)"
      service: to-local-ip
      entryPoints:
        - http

  services:
    to-local-ip:
      loadBalancer:
        servers:
          - url: "http://10.2.2.1:81"
  1. If incoming request contains "PathPrefix(/micro)" it goes to docker service.

Problem:
When accessing Dashboard ir loads empty, because resources /api/version /api/entrypoints /api/overview are not accessable (404), because everything containing "PathPrefix(/api)" is routed to local web server listening on port :81 and there is no content related to Traefik (See step 2.).

Is there any way how /api/ path for Dashbord can be changed to something else or any other ideas? Without dockerizing local web server as option.

Did not solve root cause.
Added some additional PathPrefix/Path to cover explicitly all local web server rules so there would be no overlapping with Dashboard API.