Thanks again.
I have made suggested adjustments but still no luck.
I have attached my dashboard screenshots of routers and services.
traefik.yml:
providers:
file:
filename: /etc/traefik/rest.yml
watch: true
rest: true
log:
level: DEBUG
filePath: "/var/log/traefik/error.log"
api:
dashboard: true
insecure: true
rest.yml:
http:
routers:
rest:
rule: Host(`localhost`) && PathPrefix(`/api/providers/rest`)
service: rest@internal
entryPoints:
- traefik
Debug log:
time="2020-07-09T17:15:16Z" level=info msg="Traefik version 2.2.2 built on 2020-07-08T15:30:29Z"
time="2020-07-09T17:15:16Z" level=debug msg="Static configuration loaded {\"global\":{\"checkNewVersion\":true},\"serversTransport\":{\"maxIdleConnsPerHost\":200},\"entryPoints\":{\"http\":{\"address\":\":80\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":10000000000},\"respondingTimeouts\":{\"idleTimeout\":180000000000}},\"forwardedHeaders\":{},\"http\":{}},\"traefik\":{\"address\":\":8080\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":10000000000},\"respondingTimeouts\":{\"idleTimeout\":180000000000}},\"forwardedHeaders\":{},\"http\":{}}},\"providers\":{\"providersThrottleDuration\":2000000000,\"file\":{\"watch\":true,\"filename\":\"/etc/traefik/rest.yml\"},\"rest\":{}},\"api\":{\"insecure\":true,\"dashboard\":true},\"log\":{\"level\":\"DEBUG\",\"filePath\":\"/var/log/traefik/error.log\",\"format\":\"common\"}}"
time="2020-07-09T17:15:16Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://docs.traefik.io/contributing/data-collection/\n"
time="2020-07-09T17:15:16Z" level=info msg="Starting provider aggregator.ProviderAggregator {}"
time="2020-07-09T17:15:16Z" level=debug msg="Start TCP Server" entryPointName=http
time="2020-07-09T17:15:16Z" level=debug msg="Start TCP Server" entryPointName=traefik
time="2020-07-09T17:15:16Z" level=info msg="Starting provider *file.Provider {\"watch\":true,\"filename\":\"/etc/traefik/rest.yml\"}"
time="2020-07-09T17:15:16Z" level=info msg="Starting provider *traefik.Provider {}"
time="2020-07-09T17:15:16Z" level=debug msg="Configuration received from provider file: {\"http\":{\"routers\":{\"rest\":{\"entryPoints\":[\"traefik\"],\"service\":\"rest@internal\",\"rule\":\"Host(`localhost`) \\u0026\\u0026 PathPrefix(`/api/providers/rest`)\"}}},\"tcp\":{},\"udp\":{},\"tls\":{}}" providerName=file
time="2020-07-09T17:15:16Z" level=debug msg="Configuration received from provider internal: {\"http\":{\"routers\":{\"api\":{\"entryPoints\":[\"traefik\"],\"service\":\"api@internal\",\"rule\":\"PathPrefix(`/api`)\",\"priority\":2147483646},\"dashboard\":{\"entryPoints\":[\"traefik\"],\"middlewares\":[\"dashboard_redirect@internal\",\"dashboard_stripprefix@internal\"],\"service\":\"dashboard@internal\",\"rule\":\"PathPrefix(`/`)\",\"priority\":2147483645}},\"services\":{\"api\":{},\"dashboard\":{},\"noop\":{},\"rest\":{}},\"middlewares\":{\"dashboard_redirect\":{\"redirectRegex\":{\"regex\":\"^(http:\\\\/\\\\/(\\\\[[\\\\w:.]+\\\\]|[\\\\w\\\\._-]+)(:\\\\d+)?)\\\\/$\",\"replacement\":\"${1}/dashboard/\",\"permanent\":true}},\"dashboard_stripprefix\":{\"stripPrefix\":{\"prefixes\":[\"/dashboard/\",\"/dashboard\"]}}}},\"tcp\":{},\"tls\":{}}" providerName=internal
time="2020-07-09T17:15:16Z" level=info msg="Starting provider *rest.Provider {}"
time="2020-07-09T17:15:16Z" level=debug msg="Added outgoing tracing middleware rest@internal" middlewareType=TracingForwarder entryPointName=traefik routerName=rest@file middlewareName=tracing
time="2020-07-09T17:15:16Z" level=debug msg="Creating middleware" middlewareName=traefik-internal-recovery middlewareType=Recovery entryPointName=traefik
time="2020-07-09T17:15:16Z" level=debug msg="No default certificate, generating one"
time="2020-07-09T17:15:17Z" level=debug msg="Added outgoing tracing middleware api@internal" entryPointName=traefik routerName=api@internal middlewareName=tracing middlewareType=TracingForwarder
time="2020-07-09T17:15:17Z" level=debug msg="Added outgoing tracing middleware rest@internal" entryPointName=traefik routerName=rest@file middlewareName=tracing middlewareType=TracingForwarder
time="2020-07-09T17:15:17Z" level=debug msg="Added outgoing tracing middleware dashboard@internal" entryPointName=traefik routerName=dashboard@internal middlewareName=tracing middlewareType=TracingForwarder
time="2020-07-09T17:15:17Z" level=debug msg="Creating middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal middlewareType=StripPrefix
time="2020-07-09T17:15:17Z" level=debug msg="Adding tracing to middleware" routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal entryPointName=traefik
time="2020-07-09T17:15:17Z" level=debug msg="Creating middleware" middlewareType=RedirectRegex entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_redirect@internal
time="2020-07-09T17:15:17Z" level=debug msg="Setting up redirection from ^(http:\\/\\/(\\[[\\w:.]+\\]|[\\w\\._-]+)(:\\d+)?)\\/$ to ${1}/dashboard/" middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex entryPointName=traefik routerName=dashboard@internal
time="2020-07-09T17:15:17Z" level=debug msg="Adding tracing to middleware" middlewareName=dashboard_redirect@internal entryPointName=traefik routerName=dashboard@internal
time="2020-07-09T17:15:17Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2020-07-09T17:15:17Z" level=debug msg="No default certificate, generating one"