Testing a connection from traefik to unicorn(rails, web-app) for PoC on my app, it always return 404:
- version: v2.5.5
- use compiled binary traefik_v2.5.5_linux_amd64.tar.gz
- use file config and provider
- both apps, traefik and unicorns, are on the same linux host
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?