Problem error 404 when trying to access my sites

Hello, I come here because it's been a while since I've been able to solve my problems so last hope! and thanks to those who will help me

I can't find my url, I get a 404 page not found each time unfortunately

here is the configuration of my dynamic files :

gitlab.toml

[http]
  [http.routers]
    [http.routers.test_route_gitlab]
      entryPoints = ["test_secure"]
      service = "test_gitlab"
      rule = "Host(`test.theturn.fr`) &&  Path(`/`)"
      middlewares = ["test_gitlab_https"]
      [http.routers.test_route_gitlab.tls]
        certResolver = "test_certs"
        options = "intermediate"
  [http.middlewares]
    [http.middlewares.test_gitlab_https.redirectScheme]
      scheme = "https"
      permanent = true
  [http.services]
    [http.services.test_gitlab]
      [http.services.test_gitlab.loadBalancer]
        [[http.services.test_gitlab.loadBalancer.servers]]
          url = "http://192.168.1.56:80"

[tls.options]
  [tls.options.intermediate]
    minVersion = "VersionTLS12"
    cipherSuites = [
      "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
      "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
      "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
      "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
      "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
      "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"
    ]

my second dynamic file : doku.toml

[http]
  [http.routers]
    [http.routers.test2_route_doku]
      entryPoints = ["test_secure"]
      service = "test2_doku"
      rule = "Host(`test2.theturn.fr`) &&  Path(`/`)"
      middlewares = ["test2_doku_https"]
      [http.routers.test2_route_doku.tls]
        certResolver = "theturn_certs"
        options = "intermediate"
  [http.middlewares]
    [http.middlewares.test2_doku_https.redirectScheme]
      scheme = "https"
      permanent = true
  [http.services]
    [http.services.test2_doku]
      [http.services.test2_doku.loadBalancer]
        [[http.services.test2_doku.loadBalancer.servers]]
          url = "http://192.168.1.51:80"

[tls.options]
  [tls.options.intermediate]
    minVersion = "VersionTLS12"
    cipherSuites = [
      "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
      "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
      "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
      "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
      "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
      "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"
    ]

and to finish this is my docker-compose file :

version: '3.3'

services:
  traefik:
    image: traefik:2.3.6
    volumes:
      #- /home/pi/traefik-v2/config.toml:/etc/traefik/config.toml
      - /home/pi/traefik-v2/certs/acme.json/acme.json:/acme.json
      - /home/pi/traefik-v2/conf.d:/etc/traefik/conf.d
    ports:
      - 80:80
      - 443:443
      - 8080:8080
    command:
      - "--global.sendAnonymousUsage"
      - "--log.level=INFO"
      - "--accesslog=true"
      - "--api.insecure=true"
      - "--api=true"
      - "--api.dashboard=true"
      - "--providers.file.directory=/etc/traefik/conf.d/"
      - "--providers.file.watch=true"
      - "--entrypoints.test.address=:80"
      - "--entrypoints.test_secure.address=:443"
      - "--entrypoints.test.http.redirections.entrypoint.scheme=https"
      - "--entrypoints.test.http.redirections.entrypoint.to=test_secure"
      - "--certificatesresolvers.test_certs.acme.email=uchi@theturn.fr"
      - "--certificatesresolvers.test_certs.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
      - "--certificatesresolvers.test_certs.acme.storage=/acme.json"
      - "--certificatesresolvers.test_certs.acme.keytype=RSA4096"
      - "--certificatesresolvers.test_certs.acme.httpchallenge.entrypoint=test"
      - "--certificatesresolvers.test_certs.acme.httpchallenge=true"

Thanks for your help guys

Hi,
I bet on an erroned PATH in your app declaration or a erroned volume mount to the host. Review this in the docker-compose of your applications or post it if you would like a second view.

404 mean that traefik is redirecting properly to your web docker, instead it would be a 502 if it was a for example an erroned IP address or a turned OFF docker etc.

Also in your configuration i see that you use IP adress instead of container name, any reason for this ?

Hope it help

Hello Thanks for your answer.
Unfortunately the path looks correct :confused:

yes im using the ip address and my solutions are not installed with docker :slightly_smiling_face:

Is 192.168.1.56 the same host for traefik and your app ? If yes, your port 80 can't be allocated for traefik AND your app.

If no can you ping from traefik host your other app host ? Do you have logs of your app web server etc ?

This is only the / path. Nothing else will match this rule. Most likely you can drop the && Path(`/`) from the rule.

No, they are not the same. :confused:

Thanks, i already tested without && Path(/) but same problem :confused: