Simple PoC Failure

Testing a connection from traefik to unicorn(rails, web-app) for PoC on my app, it always return 404:

Static configuration:

ping: {}

entryPoints:
  entryForTest:
    address: ":800"

providers:
  file:
    directory: "/path/to/provider/conf"

log:
  filePath: "/path/to/log/traefik.log"
  level: DEBUG

accessLog:
  filePath: "/path/tolog/access.log"

Provider file(/path/to/provider/conf/my-app.yaml):

http:
  routers:
    mys-app-router:
      entryPoints:
      - entryForTest
      service: my-app-service
      rule: Path(`/*`)

  services:
    my-app-service:
      loadBalancer:
        servers:
        - url: "http://ldev1:8100/"

Working for requests to unicorn directly:

$ curl -L http://ldev1:8100/
<response>...

But to traefik, return 404:

$ curl -L http://ldev1:800/
404 page not found

How could I correct that? Can I get more information about 404 error?

solved: 404 means 'no router matched', change the rule to PathPrefix(/) working prorperly.
cc: Details on 404 request?

1 Like